#AF50EB#AF50EB

#AF50EB is a light, highly saturated violet. Relative luminance 0.208; OKLCH L 62.1% C 0.228 H 309.4°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#AF50EB
RGBrgb(175, 80, 235)
HSLhsl(277, 79%, 62%)
HSVhsv(277, 66%, 92%)
CMYKcmyk(25.5%, 66%, 0%, 7.8%)
CIE-LABlab(52.78, 63.73, -62.43)
CIE-LCHlch(52.78, 89.21, 315.59°)
OKLaboklab(62.09% 0.1451 -0.1765)
OKLCHoklch(62.09% 0.228 309.4)
XYZxyz(35.5403, 20.8501, 80.7334)
Luminance0.2085 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF50EB #8CEB50
analogous
#6250EB #AF50EB #EB50DA
triadic
#AF50EB #EBAF50 #50EBAF
tetradic
#AF50EB #EB6250 #8CEB50 #50DAEB
square
#AF50EB #EB6250 #8CEB50 #50DAEB
split-complementary
#AF50EB #DAEB50 #50EB62
monochromatic
#7214AD #961AE4 #AF50EB #C887F1 #E1BEF8

Accessibility & contrast

On white

4.06
#AF50EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#AF50EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF50EB
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF50EB#FFFFFF#000000##000000
##AF50EB1.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF0
Deuteranopia (green-blind)
#367FE8
Tritanopia (blue-blind)
#A67197
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af50eb;
/* rgb */ color: rgb(175, 80, 235);
/* oklch */ color: oklch(62.1% 0.228 309.4);
Tailwind
colors: {
  custom: {
    50: '#cb87f2',
    500: '#af50eb',
    950: '#000000',
  },
}
SCSS
$custom: #af50eb;
$custom-light: #cb87f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af50eb",
  "rgb": {
    "r": 175,
    "g": 80,
    "b": 235
  },
  "hsl": {
    "h": 276.774,
    "s": 79.487,
    "l": 61.765
  },
  "oklch": {
    "l": 0.62086,
    "c": 0.22845,
    "h": 309.4
  },
  "luminance": 0.20849
}

Semantic roles & 50–950 ramp

primary
#AF50EB
secondary
#C5E8AF
accent
#DC0A5B
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF50EB

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

Preview Lab → · Contrast checker → · Palette generator →

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