#AF5EBA#AF5EBA

#AF5EBA is a mid, vivid purple. Relative luminance 0.207; OKLCH L 61.1% C 0.159 H 322.7°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#AF5EBA
RGBrgb(175, 94, 186)
HSLhsl(293, 40%, 55%)
HSVhsv(293, 49%, 73%)
CMYKcmyk(5.9%, 49.5%, 0%, 27.1%)
CIE-LABlab(52.58, 46.87, -34.84)
CIE-LCHlch(52.58, 58.40, 323.38°)
OKLaboklab(61.06% 0.1261 -0.0961)
OKLCHoklch(61.06% 0.159 322.7)
XYZxyz(30.5439, 20.6659, 48.8249)
Luminance0.2067 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF5EBA #69BA5E
analogous
#815EBA #AF5EBA #BA5E97
triadic
#AF5EBA #BAAF5E #5EBAAF
tetradic
#AF5EBA #BA815E #69BA5E #5E97BA
square
#AF5EBA #BA815E #69BA5E #5E97BA
split-complementary
#AF5EBA #97BA5E #5EBA81
monochromatic
#672F6E #8F4299 #AF5EBA #C489CC #DAB4DF

Accessibility & contrast

On white

4.09
#AF5EBA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#AF5EBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF5EBA
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF5EBA#FFFFFF#000000##000000
##AF5EBA1.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5177BD
Deuteranopia (green-blind)
#6981B7
Tritanopia (blue-blind)
#B16A83
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #af5eba;
/* rgb */ color: rgb(175, 94, 186);
/* oklch */ color: oklch(61.1% 0.159 322.7);
Tailwind
colors: {
  custom: {
    50: '#c98ecf',
    500: '#af5eba',
    950: '#000000',
  },
}
SCSS
$custom: #af5eba;
$custom-light: #c98ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#af5eba",
  "rgb": {
    "r": 175,
    "g": 94,
    "b": 186
  },
  "hsl": {
    "h": 292.826,
    "s": 40,
    "l": 54.902
  },
  "oklch": {
    "l": 0.61064,
    "c": 0.15858,
    "h": 322.7
  },
  "luminance": 0.20665
}

Semantic roles & 50–950 ramp

primary
#AF5EBA
secondary
#ABCDA7
accent
#D05866
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#130D14
muted
#827D82

Preview Lab

Preview with #AF5EBA

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

Preview Lab → · Contrast checker → · Palette generator →

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