#5F265F#5F265F

#5F265F is a dark, moderate purple. Relative luminance 0.046; OKLCH L 37.4% C 0.114 H 327.6°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#5F265F
RGBrgb(95, 38, 95)
HSLhsl(300, 43%, 26%)
HSVhsv(300, 60%, 37%)
CMYKcmyk(0%, 60%, 0%, 62.7%)
CIE-LABlab(25.70, 34.50, -22.16)
CIE-LCHlch(25.70, 41.01, 327.28°)
OKLaboklab(37.4% 0.096 -0.061)
OKLCHoklch(37.4% 0.114 327.6)
XYZxyz(7.4779, 4.6458, 11.3271)
Luminance0.0464 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F265F #265F26
analogous
#42265F #5F265F #5F2642
triadic
#5F265F #5F5F26 #265F5F
tetradic
#5F265F #5F4226 #265F26 #26425F
square
#5F265F #5F4226 #265F26 #26425F
split-complementary
#5F265F #425F26 #265F42
monochromatic
#160916 #331533 #5F265F #8B378B #B649B6

Accessibility & contrast

On white

10.89
#5F265F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5F265F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F265F
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F265F#FFFFFF#000000##FFFFFF
##5F265F1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203861
Deuteranopia (green-blind)
#33405D
Tritanopia (blue-blind)
#622D3E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f265f;
/* rgb */ color: rgb(95, 38, 95);
/* oklch */ color: oklch(37.4% 0.114 327.6);
Tailwind
colors: {
  custom: {
    50: '#8e648c',
    500: '#5f265f',
    950: '#000000',
  },
}
SCSS
$custom: #5f265f;
$custom-light: #8e648c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f265f",
  "rgb": {
    "r": 95,
    "g": 38,
    "b": 95
  },
  "hsl": {
    "h": 300,
    "s": 42.857,
    "l": 26.078
  },
  "oklch": {
    "l": 0.37398,
    "c": 0.11377,
    "h": 327.6
  },
  "luminance": 0.04645
}

Semantic roles & 50–950 ramp

primary
#5F265F
secondary
#4F924F
accent
#D35555
background
#F8F6F8
surface
#F0EBF0
border
#CBC6CB
text
#0C060C
muted
#7D7A7D

Preview Lab

Preview with #5F265F

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

Preview Lab → · Contrast checker → · Palette generator →

#5F265F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva