#AF39F2#AF39F2

#AF39F2 is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 60.3% C 0.260 H 309.5°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#AF39F2
RGBrgb(175, 57, 242)
HSLhsl(278, 88%, 59%)
HSVhsv(278, 76%, 95%)
CMYKcmyk(27.7%, 76.4%, 0%, 5.1%)
CIE-LABlab(50.04, 74.30, -70.80)
CIE-LCHlch(50.04, 102.62, 316.38°)
OKLaboklab(60.29% 0.1657 -0.2009)
OKLCHoklch(60.29% 0.26 309.5)
XYZxyz(35.1661, 18.4517, 85.6962)
Luminance0.1845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF39F2 #7CF239
analogous
#5239F2 #AF39F2 #F239D9
triadic
#AF39F2 #F2AF39 #39F2AF
tetradic
#AF39F2 #F25239 #7CF239 #39D9F2
square
#AF39F2 #F25239 #7CF239 #39D9F2
split-complementary
#AF39F2 #D9F239 #39F252
monochromatic
#6E0BA6 #940FDF #AF39F2 #C672F6 #DDACFA

Accessibility & contrast

On white

4.48
#AF39F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#AF39F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF39F2
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF39F2#FFFFFF#000000##000000
##AF39F21.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072F7
Deuteranopia (green-blind)
#0079EE
Tritanopia (blue-blind)
#A56795
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af39f2;
/* rgb */ color: rgb(175, 57, 242);
/* oklch */ color: oklch(60.3% 0.260 309.5);
Tailwind
colors: {
  custom: {
    50: '#cd7cf7',
    500: '#af39f2',
    950: '#000000',
  },
}
SCSS
$custom: #af39f2;
$custom-light: #cd7cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#af39f2",
  "rgb": {
    "r": 175,
    "g": 57,
    "b": 242
  },
  "hsl": {
    "h": 278.27,
    "s": 87.678,
    "l": 58.627
  },
  "oklch": {
    "l": 0.60285,
    "c": 0.26044,
    "h": 309.5
  },
  "luminance": 0.18451
}

Semantic roles & 50–950 ramp

primary
#AF39F2
secondary
#B9E89F
accent
#FE2A77
background
#FDF8FF
surface
#FAEFFF
border
#D3CAD7
text
#140B17
muted
#837C85

Preview Lab

Preview with #AF39F2

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

Preview Lab → · Contrast checker → · Palette generator →

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