#AF4BEB#AF4BEB

#AF4BEB is a mid, highly saturated violet. Relative luminance 0.201; OKLCH L 61.5% C 0.235 H 309.8°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#AF4BEB
RGBrgb(175, 75, 235)
HSLhsl(278, 80%, 61%)
HSVhsv(278, 68%, 92%)
CMYKcmyk(25.5%, 68.1%, 0%, 7.8%)
CIE-LABlab(52.00, 65.92, -63.69)
CIE-LCHlch(52.00, 91.66, 315.98°)
OKLaboklab(61.52% 0.1503 -0.1802)
OKLCHoklch(61.52% 0.235 309.8)
XYZxyz(35.1877, 20.1450, 80.6159)
Luminance0.2014 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF4BEB #87EB4B
analogous
#5F4BEB #AF4BEB #EB4BD7
triadic
#AF4BEB #EBAF4B #4BEBAF
tetradic
#AF4BEB #EB5F4B #87EB4B #4BD7EB
square
#AF4BEB #EB5F4B #87EB4B #4BD7EB
split-complementary
#AF4BEB #D7EB4B #4BEB5F
monochromatic
#7113A9 #9519E0 #AF4BEB #C782F1 #E0B9F7

Accessibility & contrast

On white

4.18
#AF4BEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#AF4BEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF4BEB
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF4BEB#FFFFFF#000000##000000
##AF4BEB1.004.185.035.03
#FFFFFF4.181.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F0
Deuteranopia (green-blind)
#2F7DE7
Tritanopia (blue-blind)
#A76E96
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #af4beb;
/* rgb */ color: rgb(175, 75, 235);
/* oklch */ color: oklch(61.5% 0.235 309.8);
Tailwind
colors: {
  custom: {
    50: '#cb85f2',
    500: '#af4beb',
    950: '#000000',
  },
}
SCSS
$custom: #af4beb;
$custom-light: #cb85f2;
$custom-dark: #000000;
JSON
{
  "hex": "#af4beb",
  "rgb": {
    "r": 175,
    "g": 75,
    "b": 235
  },
  "hsl": {
    "h": 277.5,
    "s": 80,
    "l": 60.784
  },
  "oklch": {
    "l": 0.61524,
    "c": 0.23464,
    "h": 309.8
  },
  "luminance": 0.20144
}

Semantic roles & 50–950 ramp

primary
#AF4BEB
secondary
#C1E7AB
accent
#DC0958
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140B17
muted
#837C85

Preview Lab

Preview with #AF4BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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