#AF4EEC#AF4EEC

#AF4EEC is a mid, highly saturated violet. Relative luminance 0.206; OKLCH L 61.9% C 0.232 H 309.4°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#AF4EEC
RGBrgb(175, 78, 236)
HSLhsl(277, 81%, 62%)
HSVhsv(277, 67%, 93%)
CMYKcmyk(25.8%, 66.9%, 0%, 7.5%)
CIE-LABlab(52.53, 64.83, -63.40)
CIE-LCHlch(52.53, 90.68, 315.64°)
OKLaboklab(61.92% 0.1471 -0.1793)
OKLCHoklch(61.92% 0.232 309.4)
XYZxyz(35.5409, 20.6195, 81.4483)
Luminance0.2062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4EEC #8BEC4E
analogous
#604EEC #AF4EEC #EC4EDA
triadic
#AF4EEC #ECAF4E #4EECAF
tetradic
#AF4EEC #EC604E #8BEC4E #4EDAEC
square
#AF4EEC #EC604E #8BEC4E #4EDAEC
split-complementary
#AF4EEC #DAEC4E #4EEC60
monochromatic
#7113AD #9619E4 #AF4EEC #C885F2 #E1BDF8

Accessibility & contrast

On white

4.10
#AF4EEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#AF4EEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4EEC
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4EEC#FFFFFF#000000##000000
##AF4EEC1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F1
Deuteranopia (green-blind)
#327FE9
Tritanopia (blue-blind)
#A67097
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af4eec;
/* rgb */ color: rgb(175, 78, 236);
/* oklch */ color: oklch(61.9% 0.232 309.4);
Tailwind
colors: {
  custom: {
    50: '#cb86f3',
    500: '#af4eec',
    950: '#000000',
  },
}
SCSS
$custom: #af4eec;
$custom-light: #cb86f3;
$custom-dark: #000000;
JSON
{
  "hex": "#af4eec",
  "rgb": {
    "r": 175,
    "g": 78,
    "b": 236
  },
  "hsl": {
    "h": 276.835,
    "s": 80.612,
    "l": 61.569
  },
  "oklch": {
    "l": 0.61924,
    "c": 0.23194,
    "h": 309.4
  },
  "luminance": 0.20619
}

Semantic roles & 50–950 ramp

primary
#AF4EEC
secondary
#C4E8AE
accent
#DD095B
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF4EEC

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

Preview Lab → · Contrast checker → · Palette generator →

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