#AF5EEC#AF5EEC

#AF5EEC is a light, highly saturated violet. Relative luminance 0.232; OKLCH L 63.9% C 0.211 H 307.8°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#AF5EEC
RGBrgb(175, 94, 236)
HSLhsl(274, 79%, 65%)
HSVhsv(274, 60%, 93%)
CMYKcmyk(25.8%, 60.2%, 0%, 7.5%)
CIE-LABlab(55.25, 57.36, -59.02)
CIE-LCHlch(55.25, 82.30, 314.18°)
OKLaboklab(63.89% 0.1292 -0.1665)
OKLCHoklch(63.89% 0.211 307.8)
XYZxyz(36.8191, 23.1760, 81.8744)
Luminance0.2318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5EEC #9BEC5E
analogous
#685EEC #AF5EEC #EC5EE2
triadic
#AF5EEC #ECAF5E #5EECAF
tetradic
#AF5EEC #EC685E #9BEC5E #5EE2EC
square
#AF5EEC #EC685E #9BEC5E #5EE2EC
split-complementary
#AF5EEC #E2EC5E #5EEC68
monochromatic
#7316BA #9427E6 #AF5EEC #CA95F2 #E5CBF9

Accessibility & contrast

On white

3.73
#AF5EEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#AF5EEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5EEC
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5EEC#FFFFFF#000000##000000
##AF5EEC1.003.735.645.64
#FFFFFF3.731.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B81F0
Deuteranopia (green-blind)
#4785E9
Tritanopia (blue-blind)
#A67A9C
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #af5eec;
/* rgb */ color: rgb(175, 94, 236);
/* oklch */ color: oklch(63.9% 0.211 307.8);
Tailwind
colors: {
  custom: {
    50: '#cb90f3',
    500: '#af5eec',
    950: '#000000',
  },
}
SCSS
$custom: #af5eec;
$custom-light: #cb90f3;
$custom-dark: #000000;
JSON
{
  "hex": "#af5eec",
  "rgb": {
    "r": 175,
    "g": 94,
    "b": 236
  },
  "hsl": {
    "h": 274.225,
    "s": 78.889,
    "l": 64.706
  },
  "oklch": {
    "l": 0.63888,
    "c": 0.21076,
    "h": 307.8
  },
  "luminance": 0.23175
}

Semantic roles & 50–950 ramp

primary
#AF5EEC
secondary
#CFEBBB
accent
#DB0A64
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5EEC

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

Preview Lab → · Contrast checker → · Palette generator →

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