#AF1266

Closest named color: Violet Red (#A50055). oklch(49.8% 0.195 356), rgb(175, 18, 102).

Aa

White text reads best on this color (6.77:1).

About this color

#AF1266 is a medium-dark, vivid red. In OKLCH its lightness is 50%, its chroma 0.195 and its hue 356°. Its hue sits on the warm side of the wheel. The nearest named color is Violet Red (#A50055), ΔE 0.034 away. White text reads best on it, at 6.77:1.

Hue familyReds
Lightnessmedium-dark (50%)
Chromavivid (0.195)
Temperaturewarm
Nearest nameViolet Red (#A50055)
Black text3.10:1
White text6.77:1

Values

HEX#AF1266
RGBrgb(175, 18, 102)
HSLhsl(328, 81%, 38%)
OKLCHoklch(49.8% 0.195 356)

Contrast

WCAG 2 contrast ratios are the conformance target: AA needs 4.5:1 for body text and 3:1 for large text, AAA needs 7:1. APCA Lc values are supplementary guidance from the WCAG 3 drafts.

PairWCAG 2ResultAPCAAPCA guidance
White text on #AF1266 6.77:1 AA Lc -86.5 Fine for body text
Black text on #AF1266 3.10:1 AA large text Lc 22.6 Dividers and decoration only
#AF1266 text on white 6.77:1 AA Lc 81.4 Fine for body text
#AF1266 text on black 3.10:1 AA large text Lc -20.4 Dividers and decoration only

Tints and shades

A 50–950 scale built in OKLCH: the hue is held, lightness follows a Tailwind v4-like curve, and every step is kept inside the sRGB gamut. This color sits at step 700.

  1. Step 50

    50

    #FDF2F6

    oklch(97.1% 0.013 353.1)

  2. Step 100

    100

    #FAE3EA

    oklch(93.6% 0.027 357.2)

  3. Step 200

    200

    #F7CBDA

    oklch(88.4% 0.053 355.8)

  4. Step 300

    300

    #F2A7C2

    oklch(80.8% 0.094 356.1)

  5. Step 400

    400

    #E875A4

    oklch(70.8% 0.151 355.8)

  6. Step 500

    500

    #DD4A8D

    oklch(63.1% 0.192 356)

  7. Step 600

    600

    #C82177

    oklch(55.5% 0.209 356)

  8. Step 700

    700 (this color)

    #AF1266

    oklch(49.8% 0.195 356)

  9. Step 800

    800

    #8C1352

    oklch(42.6% 0.161 355.8)

  10. Step 900

    900

    #711B44

    oklch(37.8% 0.125 355.9)

  11. Step 950

    950

    #431228

    oklch(27.1% 0.08 356)

Export this scale for Tailwind in the Tailwind colors tool

#AF1266 with color blindness

Simulated with the Machado et al. (2009) model. ΔE is how far the color moves: below about 0.02 you would not notice a change.

VisionSeen asShift (ΔE)
Protanopia (no red cones)#3B49680.222
Deuteranopia (no green cones)#6665630.195
Tritanopia (no blue cones)#BE003D0.069
Achromatopsia (no color)#5B5B5B0.196

Harmonies

Hue rotations in OKLCH that keep this color's lightness and chroma.

Complementary

The opposite hue (180°).

  • #AF1266

    #AF1266

    oklch(49.8% 0.195 356)

  • #007361

    #007361

    oklch(49.7% 0.092 176.8)

Open the complementary palette in the generator

Analogous

Neighbouring hues, 30° either side.

  • #AF1266

    #AF1266

    oklch(49.8% 0.195 356)

  • #97299C

    #97299C

    oklch(49.8% 0.195 326.1)

  • #B8111D

    #B8111D

    oklch(49.8% 0.195 26)

Open the analogous palette in the generator

Split complementary

The two hues beside the complement (150° and 210°).

  • #AF1266

    #AF1266

    oklch(49.8% 0.195 356)

  • #007824

    #007824

    oklch(49.8% 0.152 146.1)

  • #00707A

    #00707A

    oklch(49.8% 0.085 205.6)

Open the split complementary palette in the generator

Triadic

Three hues spaced 120° apart.

  • #AF1266

    #AF1266

    oklch(49.8% 0.195 356)

  • #606A00

    #606A00

    oklch(49.8% 0.114 116.1)

  • #006B97

    #006B97

    oklch(49.9% 0.107 235.7)

Open the triadic palette in the generator

Square

Four hues spaced 90° apart.

  • #AF1266

    #AF1266

    oklch(49.8% 0.195 356)

  • #7C5D00

    #7C5D00

    oklch(49.7% 0.102 85.9)

  • #007361

    #007361

    oklch(49.7% 0.092 176.8)

  • #2E54CF

    #2E54CF

    oklch(49.7% 0.195 266.1)

Open the square palette in the generator

Palettes with this color

Curated palettes that contain a color within ΔE 0.04 (OKLab) of #AF1266, closest first.

No curated palette has a color within ΔE 0.04 of #AF1266.

Similar named colors

The eight closest entries in our named color list, with their ΔE distance.

Use #AF1266 in your product

Turn it into light and dark UI roles checked for contrast, then export to Tailwind v4, shadcn/ui, CSS or design tokens.