#AF38BE#AF38BE

#AF38BE is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.7% C 0.217 H 323.0°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#AF38BE
RGBrgb(175, 56, 190)
HSLhsl(293, 54%, 48%)
HSVhsv(293, 71%, 75%)
CMYKcmyk(7.9%, 70.5%, 0%, 25.5%)
CIE-LABlab(46.53, 64.70, -46.73)
CIE-LCHlch(46.53, 79.81, 324.16°)
OKLaboklab(56.72% 0.1731 -0.1304)
OKLCHoklch(56.72% 0.217 323)
XYZxyz(28.3867, 15.6617, 50.2330)
Luminance0.1566 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38BE #47BE38
analogous
#6C38BE #AF38BE #BE388A
triadic
#AF38BE #BEAF38 #38BEAF
tetradic
#AF38BE #BE6C38 #47BE38 #388ABE
square
#AF38BE #BE6C38 #47BE38 #388ABE
split-complementary
#AF38BE #8ABE38 #38BE6C
monochromatic
#581C5F #832A8F #AF38BE #C462D1 #D692DF

Accessibility & contrast

On white

5.08
#AF38BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#AF38BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38BE
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38BE#FFFFFF#000000##FFFFFF
##AF38BE1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0565C2
Deuteranopia (green-blind)
#4D73BB
Tritanopia (blue-blind)
#B24F77
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af38be;
/* rgb */ color: rgb(175, 56, 190);
/* oklch */ color: oklch(56.7% 0.217 323.0);
Tailwind
colors: {
  custom: {
    50: '#cb79d2',
    500: '#af38be',
    950: '#000000',
  },
}
SCSS
$custom: #af38be;
$custom-light: #cb79d2;
$custom-dark: #000000;
JSON
{
  "hex": "#af38be",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 293.284,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.56722,
    "c": 0.2167,
    "h": 323
  },
  "luminance": 0.1566
}

Semantic roles & 50–950 ramp

primary
#AF38BE
secondary
#8FCA88
accent
#DE4A5B
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AF38BE

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

Preview Lab → · Contrast checker → · Palette generator →

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