#AF45B2#AF45B2

#AF45B2 is a mid, vivid purple. Relative luminance 0.166; OKLCH L 57.4% C 0.190 H 326.6°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#AF45B2
RGBrgb(175, 69, 178)
HSLhsl(298, 44%, 48%)
HSVhsv(298, 61%, 70%)
CMYKcmyk(1.7%, 61.2%, 0%, 30.2%)
CIE-LABlab(47.73, 57.35, -37.80)
CIE-LCHlch(47.73, 68.69, 326.61°)
OKLaboklab(57.38% 0.1585 -0.1045)
OKLCHoklch(57.38% 0.19 326.6)
XYZxyz(27.8427, 16.5863, 43.8458)
Luminance0.1658 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45B2 #48B245
analogous
#7845B2 #AF45B2 #B2457E
triadic
#AF45B2 #B2AF45 #45B2AF
tetradic
#AF45B2 #B27845 #48B245 #457EB2
square
#AF45B2 #B27845 #48B245 #457EB2
split-complementary
#AF45B2 #7EB245 #45B278
monochromatic
#58235A #843486 #AF45B2 #C46EC7 #D69AD8

Accessibility & contrast

On white

4.86
#AF45B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#AF45B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF45B2
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45B2#FFFFFF#000000##FFFFFF
##AF45B21.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3669B5
Deuteranopia (green-blind)
#5C76AF
Tritanopia (blue-blind)
#B45375
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af45b2;
/* rgb */ color: rgb(175, 69, 178);
/* oklch */ color: oklch(57.4% 0.190 326.6);
Tailwind
colors: {
  custom: {
    50: '#ca80c9',
    500: '#af45b2',
    950: '#000000',
  },
}
SCSS
$custom: #af45b2;
$custom-light: #ca80c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af45b2",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 298.349,
    "s": 44.13,
    "l": 48.431
  },
  "oklch": {
    "l": 0.5738,
    "c": 0.18982,
    "h": 326.6
  },
  "luminance": 0.16585
}

Semantic roles & 50–950 ramp

primary
#AF45B2
secondary
#90C48F
accent
#D45457
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140B13
muted
#827C82

Preview Lab

Preview with #AF45B2

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

Preview Lab → · Contrast checker → · Palette generator →

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