#AF90F8#AF90F8

#AF90F8 is a light, vivid violet. Relative luminance 0.358; OKLCH L 72.4% C 0.150 H 296.2°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#AF90F8
RGBrgb(175, 144, 248)
HSLhsl(258, 88%, 77%)
HSVhsv(258, 42%, 97%)
CMYKcmyk(29.4%, 41.9%, 0%, 2.7%)
CIE-LABlab(66.40, 33.36, -47.94)
CIE-LCHlch(66.40, 58.41, 304.83°)
OKLaboklab(72.37% 0.0661 -0.1343)
OKLCHoklch(72.37% 0.15 296.2)
XYZxyz(44.5916, 35.8372, 93.3567)
Luminance0.3584 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF90F8 #D9F890
analogous
#90A5F8 #AF90F8 #E390F8
triadic
#AF90F8 #F8AF90 #90F8AF
tetradic
#AF90F8 #F890A5 #D9F890 #90F8E3
square
#AF90F8 #F890A5 #D9F890 #90F8E3
split-complementary
#AF90F8 #F8E390 #A5F890
monochromatic
#5C1DF1 #8656F4 #AF90F8 #D8CAFC #EAE2FD

Accessibility & contrast

On white

2.57
#AF90F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#AF90F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF90F8
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF90F8#FFFFFF#000000##000000
##AF90F81.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#71A2FC
Deuteranopia (green-blind)
#77A0F5
Tritanopia (blue-blind)
#9FA3B8
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #af90f8;
/* rgb */ color: rgb(175, 144, 248);
/* oklch */ color: oklch(72.4% 0.150 296.2);
Tailwind
colors: {
  custom: {
    50: '#c9b1fb',
    500: '#af90f8',
    950: '#000000',
  },
}
SCSS
$custom: #af90f8;
$custom-light: #c9b1fb;
$custom-dark: #000000;
JSON
{
  "hex": "#af90f8",
  "rgb": {
    "r": 175,
    "g": 144,
    "b": 248
  },
  "hsl": {
    "h": 257.885,
    "s": 88.136,
    "l": 76.863
  },
  "oklch": {
    "l": 0.72366,
    "c": 0.14965,
    "h": 296.2
  },
  "luminance": 0.35838
}

Semantic roles & 50–950 ramp

primary
#AF90F8
secondary
#ECF5D6
accent
#E501A1
background
#FCFAFF
surface
#F9F5FF
border
#D2CFD7
text
#131017
muted
#827F85

Preview Lab

Preview with #AF90F8

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

Preview Lab → · Contrast checker → · Palette generator →

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