#AF4DEE#AF4DEE

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

Color values

HEX#AF4DEE
RGBrgb(175, 77, 238)
HSLhsl(277, 83%, 62%)
HSVhsv(277, 68%, 93%)
CMYKcmyk(26.5%, 67.6%, 0%, 6.7%)
CIE-LABlab(52.50, 65.69, -64.56)
CIE-LCHlch(52.50, 92.11, 315.50°)
OKLaboklab(61.95% 0.148 -0.1827)
OKLCHoklch(61.95% 0.235 309)
XYZxyz(35.7626, 20.5954, 82.9637)
Luminance0.2059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4DEE #8CEE4D
analogous
#5F4DEE #AF4DEE #EE4DDC
triadic
#AF4DEE #EEAF4D #4DEEAF
tetradic
#AF4DEE #EE5F4D #8CEE4D #4DDCEE
square
#AF4DEE #EE5F4D #8CEE4D #4DDCEE
split-complementary
#AF4DEE #DCEE4D #4DEE5F
monochromatic
#7211B0 #9616E8 #AF4DEE #C885F3 #E1BDF9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF4DEE#FFFFFF#000000##000000
##AF4DEE1.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)
#0079F3
Deuteranopia (green-blind)
#2D7FEA
Tritanopia (blue-blind)
#A67098
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af4dee;
/* rgb */ color: rgb(175, 77, 238);
/* oklch */ color: oklch(61.9% 0.235 309.0);
Tailwind
colors: {
  custom: {
    50: '#cc86f4',
    500: '#af4dee',
    950: '#000000',
  },
}
SCSS
$custom: #af4dee;
$custom-light: #cc86f4;
$custom-dark: #000000;
JSON
{
  "hex": "#af4dee",
  "rgb": {
    "r": 175,
    "g": 77,
    "b": 238
  },
  "hsl": {
    "h": 276.522,
    "s": 82.564,
    "l": 61.765
  },
  "oklch": {
    "l": 0.61946,
    "c": 0.23512,
    "h": 309
  },
  "luminance": 0.20595
}

Semantic roles & 50–950 ramp

primary
#AF4DEE
secondary
#C5E9AE
accent
#DF075B
background
#FDF8FF
surface
#FAF0FE
border
#D3CBD6
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF4DEE

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

Preview Lab → · Contrast checker → · Palette generator →

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