#AF4EE9#AF4EE9

#AF4EE9 is a mid, highly saturated violet. Relative luminance 0.204; OKLCH L 61.7% C 0.229 H 310.1°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#AF4EE9
RGBrgb(175, 78, 233)
HSLhsl(278, 78%, 61%)
HSVhsv(278, 67%, 91%)
CMYKcmyk(24.9%, 66.5%, 0%, 8.6%)
CIE-LABlab(52.34, 64.19, -62.02)
CIE-LCHlch(52.34, 89.26, 315.98°)
OKLaboklab(61.72% 0.1474 -0.1753)
OKLCHoklch(61.72% 0.229 310.1)
XYZxyz(35.1087, 20.4467, 79.1721)
Luminance0.2045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EE9 #88E94E
analogous
#614EE9 #AF4EE9 #E94ED6
triadic
#AF4EE9 #E9AF4E #4EE9AF
tetradic
#AF4EE9 #E9614E #88E94E #4ED6E9
square
#AF4EE9 #E9614E #88E94E #4ED6E9
split-complementary
#AF4EE9 #D6E94E #4EE961
monochromatic
#7115A8 #951CDE #AF4EE9 #C884F0 #E0BBF7

Accessibility & contrast

On white

4.13
#AF4EE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#AF4EE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4EE9
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EE9#FFFFFF#000000##000000
##AF4EE91.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079EE
Deuteranopia (green-blind)
#367EE6
Tritanopia (blue-blind)
#A76F95
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af4ee9;
/* rgb */ color: rgb(175, 78, 233);
/* oklch */ color: oklch(61.7% 0.229 310.1);
Tailwind
colors: {
  custom: {
    50: '#cb86f1',
    500: '#af4ee9',
    950: '#000000',
  },
}
SCSS
$custom: #af4ee9;
$custom-light: #cb86f1;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ee9",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 233
  },
  "hsl": {
    "h": 277.548,
    "s": 77.889,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61725,
    "c": 0.22901,
    "h": 310.1
  },
  "luminance": 0.20446
}

Semantic roles & 50–950 ramp

primary
#AF4EE9
secondary
#C2E7AC
accent
#DA0B59
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF4EE9

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

Preview Lab → · Contrast checker → · Palette generator →

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