#AF2EBB#AF2EBB

#AF2EBB is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.7% C 0.225 H 324.2°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#AF2EBB
RGBrgb(175, 46, 187)
HSLhsl(295, 61%, 46%)
HSVhsv(295, 75%, 73%)
CMYKcmyk(6.4%, 75.4%, 0%, 26.7%)
CIE-LABlab(45.16, 67.57, -47.16)
CIE-LCHlch(45.16, 82.40, 325.09°)
OKLaboklab(55.69% 0.1825 -0.1315)
OKLCHoklch(55.69% 0.225 324.2)
XYZxyz(27.6251, 14.6576, 48.3782)
Luminance0.1466 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2EBB #3ABB2E
analogous
#692EBB #AF2EBB #BB2E80
triadic
#AF2EBB #BBAF2E #2EBBAF
tetradic
#AF2EBB #BB692E #3ABB2E #2E80BB
square
#AF2EBB #BB692E #3ABB2E #2E80BB
split-complementary
#AF2EBB #80BB2E #2EBB69
monochromatic
#531659 #81228A #AF2EBB #C952D4 #D983E0

Accessibility & contrast

On white

5.34
#AF2EBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#AF2EBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2EBB
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2EBB#FFFFFF#000000##FFFFFF
##AF2EBB1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BF
Deuteranopia (green-blind)
#4A70B8
Tritanopia (blue-blind)
#B24873
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #af2ebb;
/* rgb */ color: rgb(175, 46, 187);
/* oklch */ color: oklch(55.7% 0.225 324.2);
Tailwind
colors: {
  custom: {
    50: '#cb75d0',
    500: '#af2ebb',
    950: '#000000',
  },
}
SCSS
$custom: #af2ebb;
$custom-light: #cb75d0;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ebb",
  "rgb": {
    "r": 175,
    "g": 46,
    "b": 187
  },
  "hsl": {
    "h": 294.894,
    "s": 60.515,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55691,
    "c": 0.22499,
    "h": 324.2
  },
  "luminance": 0.14656
}

Semantic roles & 50–950 ramp

primary
#AF2EBB
secondary
#82CA7B
accent
#E44452
background
#FCF7FC
surface
#F9EEF9
border
#D2C9D2
text
#140914
muted
#827B82

Preview Lab

Preview with #AF2EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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