#AF5BEF#AF5BEF

#AF5BEF is a light, highly saturated violet. Relative luminance 0.228; OKLCH L 63.7% C 0.218 H 307.4°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#AF5BEF
RGBrgb(175, 91, 239)
HSLhsl(274, 82%, 65%)
HSVhsv(274, 62%, 94%)
CMYKcmyk(26.8%, 61.9%, 0%, 6.3%)
CIE-LABlab(54.90, 59.49, -61.27)
CIE-LCHlch(54.90, 85.40, 314.15°)
OKLaboklab(63.69% 0.1326 -0.1731)
OKLCHoklch(63.69% 0.218 307.4)
XYZxyz(36.9970, 22.8286, 84.1020)
Luminance0.2283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BEF #9BEF5B
analogous
#655BEF #AF5BEF #EF5BE5
triadic
#AF5BEF #EFAF5B #5BEFAF
tetradic
#AF5BEF #EF655B #9BEF5B #5BE5EF
square
#AF5BEF #EF655B #9BEF5B #5BE5EF
split-complementary
#AF5BEF #E5EF5B #5BEF65
monochromatic
#7312BD #9423EA #AF5BEF #CA93F4 #E5CBFA

Accessibility & contrast

On white

3.77
#AF5BEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#AF5BEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BEF
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BEF#FFFFFF#000000##000000
##AF5BEF1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F4
Deuteranopia (green-blind)
#4084EC
Tritanopia (blue-blind)
#A5799D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5bef;
/* rgb */ color: rgb(175, 91, 239);
/* oklch */ color: oklch(63.7% 0.218 307.4);
Tailwind
colors: {
  custom: {
    50: '#cb8ef5',
    500: '#af5bef',
    950: '#000000',
  },
}
SCSS
$custom: #af5bef;
$custom-light: #cb8ef5;
$custom-dark: #000000;
JSON
{
  "hex": "#af5bef",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 239
  },
  "hsl": {
    "h": 274.054,
    "s": 82.222,
    "l": 64.706
  },
  "oklch": {
    "l": 0.63687,
    "c": 0.21806,
    "h": 307.4
  },
  "luminance": 0.22828
}

Semantic roles & 50–950 ramp

primary
#AF5BEF
secondary
#CFECBA
accent
#DF0764
background
#FCF8FF
surface
#F9F0FE
border
#D2CBD6
text
#140D17
muted
#827D85

Preview Lab

Preview with #AF5BEF

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

Preview Lab → · Contrast checker → · Palette generator →

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