#AF9EF2#AF9EF2

#AF9EF2 is a light, vivid violet. Relative luminance 0.400; OKLCH L 74.6% C 0.120 H 292.5°. Best body text is #000000 at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#AF9EF2
RGBrgb(175, 158, 242)
HSLhsl(252, 76%, 78%)
HSVhsv(252, 35%, 95%)
CMYKcmyk(27.7%, 34.7%, 0%, 5.1%)
CIE-LABlab(69.45, 24.03, -39.86)
CIE-LCHlch(69.45, 46.54, 301.08°)
OKLaboklab(74.6% 0.046 -0.1109)
OKLCHoklch(74.6% 0.12 292.5)
XYZxyz(45.9291, 39.9778, 89.2839)
Luminance0.3998 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9EF2 #E1F29E
analogous
#9EB7F2 #AF9EF2 #D99EF2
triadic
#AF9EF2 #F2AF9E #9EF2AF
tetradic
#AF9EF2 #F29EB7 #E1F29E #9EF2D9
square
#AF9EF2 #F29EB7 #E1F29E #9EF2D9
split-complementary
#AF9EF2 #F2D99E #B7F29E
monochromatic
#5632E4 #8268EB #AF9EF2 #DCD4F9 #E9E4FB

Accessibility & contrast

On white

2.33
#AF9EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.00
#AF9EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9EF2
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9EF2#FFFFFF#000000##000000
##AF9EF21.002.339.009.00
#FFFFFF2.331.0021.0021.00
#0000009.0021.001.001.00
##0000009.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#87ABF5
Deuteranopia (green-blind)
#89A8F0
Tritanopia (blue-blind)
#A0ADBD
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #af9ef2;
/* rgb */ color: rgb(175, 158, 242);
/* oklch */ color: oklch(74.6% 0.120 292.5);
Tailwind
colors: {
  custom: {
    50: '#c8baf6',
    500: '#af9ef2',
    950: '#000000',
  },
}
SCSS
$custom: #af9ef2;
$custom-light: #c8baf6;
$custom-dark: #000000;
JSON
{
  "hex": "#af9ef2",
  "rgb": {
    "r": 175,
    "g": 158,
    "b": 242
  },
  "hsl": {
    "h": 252.143,
    "s": 76.364,
    "l": 78.431
  },
  "oklch": {
    "l": 0.74603,
    "c": 0.12009,
    "h": 292.5
  },
  "luminance": 0.39978
}

Semantic roles & 50–950 ramp

primary
#AF9EF2
secondary
#EEF3D8
accent
#D90DAF
background
#FCFBFF
surface
#F8F6FE
border
#D1D0D6
text
#131117
muted
#828085

Preview Lab

Preview with #AF9EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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