#5F257E#5F257E

#5F257E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.3% C 0.148 H 311.4°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#5F257E
RGBrgb(95, 37, 126)
HSLhsl(279, 55%, 32%)
HSVhsv(279, 71%, 49%)
CMYKcmyk(24.6%, 70.6%, 0%, 50.6%)
CIE-LABlab(27.47, 41.75, -39.25)
CIE-LCHlch(27.47, 57.30, 316.77°)
OKLaboklab(39.31% 0.0976 -0.1108)
OKLCHoklch(39.31% 0.148 311.4)
XYZxyz(9.1461, 5.2626, 20.2686)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F257E #447E25
analogous
#33257E #5F257E #7E2571
triadic
#5F257E #7E5F25 #257E5F
tetradic
#5F257E #7E3325 #447E25 #25717E
square
#5F257E #7E3325 #447E25 #25717E
split-complementary
#5F257E #717E25 #257E33
monochromatic
#18091F #3B174F #5F257E #8333AD #A151CC

Accessibility & contrast

On white

10.23
#5F257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5F257E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F257E
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F257E#FFFFFF#000000##FFFFFF
##5F257E1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#1A427C
Tritanopia (blue-blind)
#5B384E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f257e;
/* rgb */ color: rgb(95, 37, 126);
/* oklch */ color: oklch(39.3% 0.148 311.4);
Tailwind
colors: {
  custom: {
    50: '#9064a4',
    500: '#5f257e',
    950: '#000000',
  },
}
SCSS
$custom: #5f257e;
$custom-light: #9064a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f257e",
  "rgb": {
    "r": 95,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 279.101,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.39307,
    "c": 0.14766,
    "h": 311.4
  },
  "luminance": 0.05262
}

Semantic roles & 50–950 ramp

primary
#5F257E
secondary
#71B04F
accent
#DE4A7D
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D060F
muted
#7E7A7F

Preview Lab

Preview with #5F257E

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

Preview Lab → · Contrast checker → · Palette generator →

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