#AF4CE9#AF4CE9

#AF4CE9 is a mid, highly saturated violet. Relative luminance 0.202; OKLCH L 61.5% C 0.231 H 310.2°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AF4CE9
RGBrgb(175, 76, 233)
HSLhsl(278, 78%, 61%)
HSVhsv(278, 67%, 91%)
CMYKcmyk(24.9%, 67.4%, 0%, 8.6%)
CIE-LABlab(52.03, 65.06, -62.53)
CIE-LCHlch(52.03, 90.24, 316.14°)
OKLaboklab(61.5% 0.1495 -0.1767)
OKLCHoklch(61.5% 0.231 310.2)
XYZxyz(34.9688, 20.1668, 79.1255)
Luminance0.2017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4CE9 #86E94C
analogous
#604CE9 #AF4CE9 #E94CD5
triadic
#AF4CE9 #E9AF4C #4CE9AF
tetradic
#AF4CE9 #E9604C #86E94C #4CD5E9
square
#AF4CE9 #E9604C #86E94C #4CD5E9
split-complementary
#AF4CE9 #D5E94C #4CE960
monochromatic
#7014A6 #951BDD #AF4CE9 #C783F0 #E0B9F6

Accessibility & contrast

On white

4.17
#AF4CE9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#AF4CE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4CE9
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4CE9#FFFFFF#000000##000000
##AF4CE91.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078EE
Deuteranopia (green-blind)
#347EE6
Tritanopia (blue-blind)
#A76D95
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af4ce9;
/* rgb */ color: rgb(175, 76, 233);
/* oklch */ color: oklch(61.5% 0.231 310.2);
Tailwind
colors: {
  custom: {
    50: '#cb85f1',
    500: '#af4ce9',
    950: '#000000',
  },
}
SCSS
$custom: #af4ce9;
$custom-light: #cb85f1;
$custom-dark: #000000;
JSON
{
  "hex": "#af4ce9",
  "rgb": {
    "r": 175,
    "g": 76,
    "b": 233
  },
  "hsl": {
    "h": 277.834,
    "s": 78.109,
    "l": 60.588
  },
  "oklch": {
    "l": 0.615,
    "c": 0.23149,
    "h": 310.2
  },
  "luminance": 0.20166
}

Semantic roles & 50–950 ramp

primary
#AF4CE9
secondary
#C1E6AB
accent
#DA0B58
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF4CE9

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

Preview Lab → · Contrast checker → · Palette generator →

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