#AF4BFC#AF4BFC

#AF4BFC is a light, highly saturated violet. Relative luminance 0.212; OKLCH L 62.7% C 0.251 H 306.2°. Best body text is #000000 at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#AF4BFC
RGBrgb(175, 75, 252)
HSLhsl(274, 97%, 64%)
HSVhsv(274, 70%, 99%)
CMYKcmyk(30.6%, 70.2%, 0%, 1.2%)
CIE-LABlab(53.14, 69.55, -71.35)
CIE-LCHlch(53.14, 99.64, 314.27°)
OKLaboklab(62.7% 0.1481 -0.2027)
OKLCHoklch(62.7% 0.251 306.2)
XYZxyz(37.7621, 21.1747, 94.1744)
Luminance0.2117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4BFC #98FC4B
analogous
#574BFC #AF4BFC #FC4BF1
triadic
#AF4BFC #FCAF4B #4BFCAF
tetradic
#AF4BFC #FC574B #98FC4B #4BF1FC
square
#AF4BFC #FC574B #98FC4B #4BF1FC
split-complementary
#AF4BFC #F1FC4B #4BFC57
monochromatic
#7303C9 #940FFB #AF4BFC #CA87FD #E5C3FE

Accessibility & contrast

On white

4.01
#AF4BFC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.23
#AF4BFC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4BFC
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4BFC#FFFFFF#000000##000000
##AF4BFC1.004.015.235.23
#FFFFFF4.011.0021.0021.00
#0000005.2321.001.001.00
##0000005.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFF
Deuteranopia (green-blind)
#007FF8
Tritanopia (blue-blind)
#A1749F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #af4bfc;
/* rgb */ color: rgb(175, 75, 252);
/* oklch */ color: oklch(62.7% 0.251 306.2);
Tailwind
colors: {
  custom: {
    50: '#cc85fe',
    500: '#af4bfc',
    950: '#000000',
  },
}
SCSS
$custom: #af4bfc;
$custom-light: #cc85fe;
$custom-dark: #000000;
JSON
{
  "hex": "#af4bfc",
  "rgb": {
    "r": 175,
    "g": 75,
    "b": 252
  },
  "hsl": {
    "h": 273.898,
    "s": 96.721,
    "l": 64.118
  },
  "oklch": {
    "l": 0.62696,
    "c": 0.25103,
    "h": 306.2
  },
  "luminance": 0.21174
}

Semantic roles & 50–950 ramp

primary
#AF4BFC
secondary
#CDF0B3
accent
#E60064
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#140C18
muted
#837D86

Preview Lab

Preview with #AF4BFC

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

Preview Lab → · Contrast checker → · Palette generator →

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