#AF5BEE#AF5BEE

#AF5BEE is a light, highly saturated violet. Relative luminance 0.228; OKLCH L 63.6% C 0.217 H 307.7°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#AF5BEE
RGBrgb(175, 91, 238)
HSLhsl(274, 81%, 65%)
HSVhsv(274, 62%, 93%)
CMYKcmyk(26.5%, 61.8%, 0%, 6.7%)
CIE-LABlab(54.83, 59.27, -60.81)
CIE-LCHlch(54.83, 84.91, 314.26°)
OKLaboklab(63.62% 0.1326 -0.1718)
OKLCHoklch(63.62% 0.217 307.7)
XYZxyz(36.8497, 22.7697, 83.3261)
Luminance0.2277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5BEE #9AEE5B
analogous
#665BEE #AF5BEE #EE5BE3
triadic
#AF5BEE #EEAF5B #5BEEAF
tetradic
#AF5BEE #EE665B #9AEE5B #5BE3EE
square
#AF5BEE #EE665B #9AEE5B #5BE3EE
split-complementary
#AF5BEE #E3EE5B #5BEE66
monochromatic
#7313BB #9424E8 #AF5BEE #CA92F4 #E5CAF9

Accessibility & contrast

On white

3.78
#AF5BEE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#AF5BEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5BEE
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5BEE#FFFFFF#000000##000000
##AF5BEE1.003.785.555.55
#FFFFFF3.781.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0180F3
Deuteranopia (green-blind)
#4184EB
Tritanopia (blue-blind)
#A5799C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #af5bee;
/* rgb */ color: rgb(175, 91, 238);
/* oklch */ color: oklch(63.6% 0.217 307.7);
Tailwind
colors: {
  custom: {
    50: '#cb8ef4',
    500: '#af5bee',
    950: '#000000',
  },
}
SCSS
$custom: #af5bee;
$custom-light: #cb8ef4;
$custom-dark: #000000;
JSON
{
  "hex": "#af5bee",
  "rgb": {
    "r": 175,
    "g": 91,
    "b": 238
  },
  "hsl": {
    "h": 274.286,
    "s": 81.215,
    "l": 64.51
  },
  "oklch": {
    "l": 0.63623,
    "c": 0.21701,
    "h": 307.7
  },
  "luminance": 0.22769
}

Semantic roles & 50–950 ramp

primary
#AF5BEE
secondary
#CFECB9
accent
#DE0863
background
#FCF8FF
surface
#F9F0FE
border
#D2CBD6
text
#140D17
muted
#827D85

Preview Lab

Preview with #AF5BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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