#AF3CEA#AF3CEA

#AF3CEA is a mid, highly saturated violet. Relative luminance 0.183; OKLCH L 60.0% C 0.250 H 311.1°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#AF3CEA
RGBrgb(175, 60, 234)
HSLhsl(280, 81%, 58%)
HSVhsv(280, 74%, 92%)
CMYKcmyk(25.2%, 74.4%, 0%, 8.2%)
CIE-LABlab(49.84, 71.63, -66.62)
CIE-LCHlch(49.84, 97.82, 317.08°)
OKLaboklab(59.97% 0.1647 -0.1887)
OKLCHoklch(59.97% 0.25 311.1)
XYZxyz(34.1435, 18.2870, 79.5571)
Luminance0.1829 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3CEA #77EA3C
analogous
#583CEA #AF3CEA #EA3CCE
triadic
#AF3CEA #EAAF3C #3CEAAF
tetradic
#AF3CEA #EA583C #77EA3C #3CCEEA
square
#AF3CEA #EA583C #77EA3C #3CCEEA
split-complementary
#AF3CEA #CEEA3C #3CEA58
monochromatic
#6C119B #9317D2 #AF3CEA #C673F0 #DCAAF6

Accessibility & contrast

On white

4.51
#AF3CEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#AF3CEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF3CEA
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3CEA#FFFFFF#000000##000000
##AF3CEA1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071EF
Deuteranopia (green-blind)
#1778E6
Tritanopia (blue-blind)
#A76591
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #af3cea;
/* rgb */ color: rgb(175, 60, 234);
/* oklch */ color: oklch(60.0% 0.250 311.1);
Tailwind
colors: {
  custom: {
    50: '#cc7df2',
    500: '#af3cea',
    950: '#000000',
  },
}
SCSS
$custom: #af3cea;
$custom-light: #cc7df2;
$custom-dark: #000000;
JSON
{
  "hex": "#af3cea",
  "rgb": {
    "r": 175,
    "g": 60,
    "b": 234
  },
  "hsl": {
    "h": 279.655,
    "s": 80.556,
    "l": 57.647
  },
  "oklch": {
    "l": 0.5997,
    "c": 0.25044,
    "h": 311.1
  },
  "luminance": 0.18286
}

Semantic roles & 50–950 ramp

primary
#AF3CEA
secondary
#B6E49E
accent
#F73174
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#140B17
muted
#837C85

Preview Lab

Preview with #AF3CEA

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

Preview Lab → · Contrast checker → · Palette generator →

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