#AF459E#AF459E

#AF459E is a mid, vivid purple. Relative luminance 0.158; OKLCH L 56.4% C 0.173 H 334.4°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#AF459E
RGBrgb(175, 69, 158)
HSLhsl(310, 43%, 48%)
HSVhsv(310, 61%, 69%)
CMYKcmyk(0%, 60.6%, 9.7%, 31.4%)
CIE-LABlab(46.76, 53.95, -27.51)
CIE-LCHlch(46.76, 60.56, 332.98°)
OKLaboklab(56.36% 0.1562 -0.0749)
OKLCHoklch(56.36% 0.173 334.4)
XYZxyz(25.9790, 15.8408, 34.0304)
Luminance0.1584 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF459E #45AF56
analogous
#8B45AF #AF459E #AF4569
triadic
#AF459E #9EAF45 #459EAF
tetradic
#AF459E #AF8B45 #45AF56 #4569AF
square
#AF459E #AF8B45 #45AF56 #4569AF
split-complementary
#AF459E #69AF45 #45AF8B
monochromatic
#57224F #833476 #AF459E #C56CB7 #D698CC

Accessibility & contrast

On white

5.04
#AF459E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#AF459E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF459E
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF459E#FFFFFF#000000##FFFFFF
##AF459E1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4465A1
Deuteranopia (green-blind)
#65759B
Tritanopia (blue-blind)
#B74C6B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af459e;
/* rgb */ color: rgb(175, 69, 158);
/* oklch */ color: oklch(56.4% 0.173 334.4);
Tailwind
colors: {
  custom: {
    50: '#ca7fbb',
    500: '#af459e',
    950: '#000000',
  },
}
SCSS
$custom: #af459e;
$custom-light: #ca7fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#af459e",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 158
  },
  "hsl": {
    "h": 309.623,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.56357,
    "c": 0.17327,
    "h": 334.4
  },
  "luminance": 0.15839
}

Semantic roles & 50–950 ramp

primary
#AF459E
secondary
#8DC296
accent
#D36955
background
#FCF8FB
surface
#F9EFF6
border
#D2CAD0
text
#140A12
muted
#827C81

Preview Lab

Preview with #AF459E

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

Preview Lab → · Contrast checker → · Palette generator →

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