#AF5FEC#AF5FEC

#AF5FEC is a light, highly saturated violet. Relative luminance 0.234; OKLCH L 64.0% C 0.209 H 307.7°. Best body text is #000000 at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#AF5FEC
RGBrgb(175, 95, 236)
HSLhsl(274, 79%, 65%)
HSVhsv(274, 60%, 93%)
CMYKcmyk(25.8%, 59.7%, 0%, 7.5%)
CIE-LABlab(55.44, 56.87, -58.73)
CIE-LCHlch(55.44, 81.75, 314.08°)
OKLaboklab(64.02% 0.128 -0.1657)
OKLCHoklch(64.02% 0.209 307.7)
XYZxyz(36.9086, 23.3550, 81.9042)
Luminance0.2336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5FEC #9CEC5F
analogous
#695FEC #AF5FEC #EC5FE2
triadic
#AF5FEC #ECAF5F #5FECAF
tetradic
#AF5FEC #EC695F #9CEC5F #5FE2EC
square
#AF5FEC #EC695F #9CEC5F #5FE2EC
split-complementary
#AF5FEC #E2EC5F #5FEC69
monochromatic
#7316BA #9428E6 #AF5FEC #CA96F2 #E6CCF9

Accessibility & contrast

On white

3.70
#AF5FEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.67
#AF5FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5FEC
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5FEC#FFFFFF#000000##000000
##AF5FEC1.003.705.675.67
#FFFFFF3.701.0021.0021.00
#0000005.6721.001.001.00
##0000005.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F82F0
Deuteranopia (green-blind)
#4886E9
Tritanopia (blue-blind)
#A67B9D
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #af5fec;
/* rgb */ color: rgb(175, 95, 236);
/* oklch */ color: oklch(64.0% 0.209 307.7);
Tailwind
colors: {
  custom: {
    50: '#cb90f3',
    500: '#af5fec',
    950: '#000000',
  },
}
SCSS
$custom: #af5fec;
$custom-light: #cb90f3;
$custom-dark: #000000;
JSON
{
  "hex": "#af5fec",
  "rgb": {
    "r": 175,
    "g": 95,
    "b": 236
  },
  "hsl": {
    "h": 274.043,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.64021,
    "c": 0.20935,
    "h": 307.7
  },
  "luminance": 0.23355
}

Semantic roles & 50–950 ramp

primary
#AF5FEC
secondary
#D0EBBB
accent
#DB0A65
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D17
muted
#827E85

Preview Lab

Preview with #AF5FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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