#AF4FEB#AF4FEB

#AF4FEB is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 62.0% C 0.230 H 309.5°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#AF4FEB
RGBrgb(175, 79, 235)
HSLhsl(277, 80%, 62%)
HSVhsv(277, 66%, 92%)
CMYKcmyk(25.5%, 66.4%, 0%, 7.8%)
CIE-LABlab(52.62, 64.17, -62.68)
CIE-LCHlch(52.62, 89.71, 315.67°)
OKLaboklab(61.97% 0.1462 -0.1772)
OKLCHoklch(61.97% 0.23 309.5)
XYZxyz(35.4676, 20.7048, 80.7092)
Luminance0.2070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4FEB #8BEB4F
analogous
#614FEB #AF4FEB #EB4FD9
triadic
#AF4FEB #EBAF4F #4FEBAF
tetradic
#AF4FEB #EB614F #8BEB4F #4FD9EB
square
#AF4FEB #EB614F #8BEB4F #4FD9EB
split-complementary
#AF4FEB #D9EB4F #4FEB61
monochromatic
#7114AC #961AE3 #AF4FEB #C886F1 #E1BDF7

Accessibility & contrast

On white

4.08
#AF4FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#AF4FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4FEB
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4FEB#FFFFFF#000000##000000
##AF4FEB1.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF0
Deuteranopia (green-blind)
#357FE8
Tritanopia (blue-blind)
#A67097
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #af4feb;
/* rgb */ color: rgb(175, 79, 235);
/* oklch */ color: oklch(62.0% 0.230 309.5);
Tailwind
colors: {
  custom: {
    50: '#cb87f2',
    500: '#af4feb',
    950: '#000000',
  },
}
SCSS
$custom: #af4feb;
$custom-light: #cb87f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af4feb",
  "rgb": {
    "r": 175,
    "g": 79,
    "b": 235
  },
  "hsl": {
    "h": 276.923,
    "s": 79.592,
    "l": 61.569
  },
  "oklch": {
    "l": 0.61971,
    "c": 0.22971,
    "h": 309.5
  },
  "luminance": 0.20704
}

Semantic roles & 50–950 ramp

primary
#AF4FEB
secondary
#C4E8AE
accent
#DC0A5A
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C17
muted
#837D85

Preview Lab

Preview with #AF4FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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