#AF5BEB#AF5BEB

#AF5BEB is a light, highly saturated violet. Relative luminance 0.226; OKLCH L 63.4% C 0.214 H 308.4°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#AF5BEB
RGBrgb(175, 91, 235)
HSLhsl(275, 78%, 64%)
HSVhsv(275, 61%, 92%)
CMYKcmyk(25.5%, 61.3%, 0%, 7.8%)
CIE-LABlab(54.65, 58.60, -59.42)
CIE-LCHlch(54.65, 83.46, 314.60°)
OKLaboklab(63.43% 0.1327 -0.1677)
OKLCHoklch(63.43% 0.214 308.4)
XYZxyz(36.4127, 22.5948, 81.0242)
Luminance0.2259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BEB #97EB5B
analogous
#675BEB #AF5BEB #EB5BDF
triadic
#AF5BEB #EBAF5B #5BEBAF
tetradic
#AF5BEB #EB675B #97EB5B #5BDFEB
square
#AF5BEB #EB675B #97EB5B #5BDFEB
split-complementary
#AF5BEB #DFEB5B #5BEB67
monochromatic
#7316B5 #9424E4 #AF5BEB #CA92F2 #E4C8F8

Accessibility & contrast

On white

3.81
#AF5BEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#AF5BEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BEB
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BEB#FFFFFF#000000##000000
##AF5BEB1.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#107FF0
Deuteranopia (green-blind)
#4484E8
Tritanopia (blue-blind)
#A6789B
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5beb;
/* rgb */ color: rgb(175, 91, 235);
/* oklch */ color: oklch(63.4% 0.214 308.4);
Tailwind
colors: {
  custom: {
    50: '#cb8ef2',
    500: '#af5beb',
    950: '#000000',
  },
}
SCSS
$custom: #af5beb;
$custom-light: #cb8ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#af5beb",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 235
  },
  "hsl": {
    "h": 275,
    "s": 78.261,
    "l": 63.922
  },
  "oklch": {
    "l": 0.63433,
    "c": 0.21387,
    "h": 308.4
  },
  "luminance": 0.22594
}

Semantic roles & 50–950 ramp

primary
#AF5BEB
secondary
#CDEAB8
accent
#DB0B61
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140D17
muted
#827D85

Preview Lab

Preview with #AF5BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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