#AF25B1#AF25B1

#AF25B1 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.4% C 0.226 H 327.5°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#AF25B1
RGBrgb(175, 37, 177)
HSLhsl(299, 65%, 42%)
HSVhsv(299, 79%, 69%)
CMYKcmyk(1.1%, 79.1%, 0%, 30.6%)
CIE-LABlab(43.67, 68.51, -43.66)
CIE-LCHlch(43.67, 81.24, 327.49°)
OKLaboklab(54.44% 0.1903 -0.1213)
OKLCHoklch(54.44% 0.226 327.5)
XYZxyz(26.2762, 13.6134, 42.8301)
Luminance0.1361 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF25B1 #27B125
analogous
#6925B1 #AF25B1 #B1256D
triadic
#AF25B1 #B1AF25 #25B1AF
tetradic
#AF25B1 #B16925 #27B125 #256DB1
square
#AF25B1 #B16925 #27B125 #256DB1
split-complementary
#AF25B1 #6DB125 #25B169
monochromatic
#4B104C #7D1A7E #AF25B1 #D43DD6 #DF6FE1

Accessibility & contrast

On white

5.64
#AF25B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#AF25B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF25B1
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF25B1#FFFFFF#000000##FFFFFF
##AF25B11.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB5
Deuteranopia (green-blind)
#4C6DAE
Tritanopia (blue-blind)
#B43E6B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af25b1;
/* rgb */ color: rgb(175, 37, 177);
/* oklch */ color: oklch(54.4% 0.226 327.5);
Tailwind
colors: {
  custom: {
    50: '#cb71c9',
    500: '#af25b1',
    950: '#000000',
  },
}
SCSS
$custom: #af25b1;
$custom-light: #cb71c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af25b1",
  "rgb": {
    "r": 175,
    "g": 37,
    "b": 177
  },
  "hsl": {
    "h": 299.143,
    "s": 65.421,
    "l": 41.961
  },
  "oklch": {
    "l": 0.54444,
    "c": 0.22563,
    "h": 327.5
  },
  "luminance": 0.13611
}

Semantic roles & 50–950 ramp

primary
#AF25B1
secondary
#6BC86A
accent
#E83F42
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF25B1

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

Preview Lab → · Contrast checker → · Palette generator →

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