#AF269E#AF269E

#AF269E is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.4% C 0.211 H 333.9°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#AF269E
RGBrgb(175, 38, 158)
HSLhsl(307, 64%, 42%)
HSVhsv(307, 78%, 69%)
CMYKcmyk(0%, 78.3%, 9.7%, 31.4%)
CIE-LABlab(42.72, 65.30, -33.85)
CIE-LCHlch(42.72, 73.55, 332.60°)
OKLaboklab(53.43% 0.1895 -0.0928)
OKLCHoklch(53.43% 0.211 333.9)
XYZxyz(24.5441, 12.9710, 33.5521)
Luminance0.1297 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF269E #26AF37
analogous
#7C26AF #AF269E #AF265A
triadic
#AF269E #9EAF26 #269EAF
tetradic
#AF269E #AF7C26 #26AF37 #265AAF
square
#AF269E #AF7C26 #26AF37 #265AAF
split-complementary
#AF269E #5AAF26 #26AF7C
monochromatic
#4A1043 #7D1B71 #AF269E #D53DC2 #E070D2

Accessibility & contrast

On white

5.84
#AF269E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#AF269E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF269E
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF269E#FFFFFF#000000##FFFFFF
##AF269E1.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2258A1
Deuteranopia (green-blind)
#576C9B
Tritanopia (blue-blind)
#B73461
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #af269e;
/* rgb */ color: rgb(175, 38, 158);
/* oklch */ color: oklch(53.4% 0.211 333.9);
Tailwind
colors: {
  custom: {
    50: '#cb71bb',
    500: '#af269e',
    950: '#000000',
  },
}
SCSS
$custom: #af269e;
$custom-light: #cb71bb;
$custom-dark: #000000;
JSON
{
  "hex": "#af269e",
  "rgb": {
    "r": 175,
    "g": 38,
    "b": 158
  },
  "hsl": {
    "h": 307.445,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.53426,
    "c": 0.21106,
    "h": 333.9
  },
  "luminance": 0.12969
}

Semantic roles & 50–950 ramp

primary
#AF269E
secondary
#6AC776
accent
#E75540
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #AF269E

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

Preview Lab → · Contrast checker → · Palette generator →

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