#AF38B4#AF38B4

#AF38B4 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.1% C 0.208 H 326.2°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#AF38B4
RGBrgb(175, 56, 180)
HSLhsl(298, 53%, 46%)
HSVhsv(298, 69%, 71%)
CMYKcmyk(2.8%, 68.9%, 0%, 29.4%)
CIE-LABlab(45.96, 62.95, -41.79)
CIE-LCHlch(45.96, 75.56, 326.42°)
OKLaboklab(56.13% 0.1732 -0.1159)
OKLCHoklch(56.13% 0.208 326.2)
XYZxyz(27.3311, 15.2394, 44.6731)
Luminance0.1524 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF38B4 #3DB438
analogous
#7138B4 #AF38B4 #B4387B
triadic
#AF38B4 #B4AF38 #38B4AF
tetradic
#AF38B4 #B47138 #3DB438 #387BB4
square
#AF38B4 #B47138 #3DB438 #387BB4
split-complementary
#AF38B4 #7BB438 #38B471
monochromatic
#541B57 #822985 #AF38B4 #C85DCD #D88BDB

Accessibility & contrast

On white

5.19
#AF38B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#AF38B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF38B4
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF38B4#FFFFFF#000000##FFFFFF
##AF38B41.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F63B8
Deuteranopia (green-blind)
#5372B1
Tritanopia (blue-blind)
#B44B72
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af38b4;
/* rgb */ color: rgb(175, 56, 180);
/* oklch */ color: oklch(56.1% 0.208 326.2);
Tailwind
colors: {
  custom: {
    50: '#ca79cb',
    500: '#af38b4',
    950: '#000000',
  },
}
SCSS
$custom: #af38b4;
$custom-light: #ca79cb;
$custom-dark: #000000;
JSON
{
  "hex": "#af38b4",
  "rgb": {
    "r": 175,
    "g": 56,
    "b": 180
  },
  "hsl": {
    "h": 297.581,
    "s": 52.542,
    "l": 46.275
  },
  "oklch": {
    "l": 0.56133,
    "c": 0.20846,
    "h": 326.2
  },
  "luminance": 0.15238
}

Semantic roles & 50–950 ramp

primary
#AF38B4
secondary
#85C582
accent
#DC4C52
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF38B4

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

Preview Lab → · Contrast checker → · Palette generator →

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