#AF3F9E#AF3F9E

#AF3F9E is a mid, vivid purple. Relative luminance 0.151; OKLCH L 55.7% C 0.182 H 334.2°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#AF3F9E
RGBrgb(175, 63, 158)
HSLhsl(309, 47%, 47%)
HSVhsv(309, 64%, 69%)
CMYKcmyk(0%, 64%, 9.7%, 31.4%)
CIE-LABlab(45.82, 56.53, -28.98)
CIE-LCHlch(45.82, 63.53, 332.86°)
OKLaboklab(55.67% 0.1638 -0.079)
OKLCHoklch(55.67% 0.182 334.2)
XYZxyz(25.6284, 15.1396, 33.9136)
Luminance0.1514 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3F9E #3FAF50
analogous
#883FAF #AF3F9E #AF3F66
triadic
#AF3F9E #9EAF3F #3F9EAF
tetradic
#AF3F9E #AF883F #3FAF50 #3F66AF
square
#AF3F9E #AF883F #3FAF50 #3F66AF
split-complementary
#AF3F9E #66AF3F #3FAF88
monochromatic
#551F4D #822F75 #AF3F9E #C764B8 #D791CD

Accessibility & contrast

On white

5.21
#AF3F9E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#AF3F9E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3F9E
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3F9E#FFFFFF#000000##FFFFFF
##AF3F9E1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E62A1
Deuteranopia (green-blind)
#62729B
Tritanopia (blue-blind)
#B74769
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #af3f9e;
/* rgb */ color: rgb(175, 63, 158);
/* oklch */ color: oklch(55.7% 0.182 334.2);
Tailwind
colors: {
  custom: {
    50: '#ca7cbb',
    500: '#af3f9e',
    950: '#000000',
  },
}
SCSS
$custom: #af3f9e;
$custom-light: #ca7cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#af3f9e",
  "rgb": {
    "r": 175,
    "g": 63,
    "b": 158
  },
  "hsl": {
    "h": 309.107,
    "s": 47.059,
    "l": 46.667
  },
  "oklch": {
    "l": 0.5567,
    "c": 0.18188,
    "h": 334.2
  },
  "luminance": 0.15138
}

Semantic roles & 50–950 ramp

primary
#AF3F9E
secondary
#87C390
accent
#D76551
background
#FCF7FB
surface
#F9EEF6
border
#D2C9D0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF3F9E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#AF3F9E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva