#5F258B#5F258B

#5F258B is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.162 H 306.4°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#5F258B
RGBrgb(95, 37, 139)
HSLhsl(274, 58%, 35%)
HSVhsv(274, 73%, 55%)
CMYKcmyk(31.7%, 73.4%, 0%, 45.5%)
CIE-LABlab(28.43, 44.83, -45.82)
CIE-LCHlch(28.43, 64.11, 314.38°)
OKLaboklab(40.3% 0.0958 -0.1301)
OKLCHoklch(40.3% 0.162 306.4)
XYZxyz(10.0401, 5.6202, 24.9770)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F258B #518B25
analogous
#2C258B #5F258B #8B2584
triadic
#5F258B #8B5F25 #258B5F
tetradic
#5F258B #8B2C25 #518B25 #25848B
square
#5F258B #8B2C25 #518B25 #25848B
split-complementary
#5F258B #848B25 #258B2C
monochromatic
#1D0B2A #3E185B #5F258B #8032BB #9E58D3

Accessibility & contrast

On white

9.89
#5F258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5F258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F258B
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F258B#FFFFFF#000000##FFFFFF
##5F258B1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#004389
Tritanopia (blue-blind)
#573D55
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f258b;
/* rgb */ color: rgb(95, 37, 139);
/* oklch */ color: oklch(40.3% 0.162 306.4);
Tailwind
colors: {
  custom: {
    50: '#9165ae',
    500: '#5f258b',
    950: '#000000',
  },
}
SCSS
$custom: #5f258b;
$custom-light: #9165ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5f258b",
  "rgb": {
    "r": 95,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 274.118,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40299,
    "c": 0.16159,
    "h": 306.4
  },
  "luminance": 0.0562
}

Semantic roles & 50–950 ramp

primary
#5F258B
secondary
#7FB755
accent
#E14789
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F258B

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

Preview Lab → · Contrast checker → · Palette generator →

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