#5F258F#5F258F

#5F258F is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.166 H 305.0°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#5F258F
RGBrgb(95, 37, 143)
HSLhsl(273, 59%, 35%)
HSVhsv(273, 74%, 56%)
CMYKcmyk(33.6%, 74.1%, 0%, 43.9%)
CIE-LABlab(28.75, 45.80, -47.79)
CIE-LCHlch(28.75, 66.20, 313.78°)
OKLaboklab(40.62% 0.0951 -0.1359)
OKLCHoklch(40.62% 0.166 305)
XYZxyz(10.3377, 5.7393, 26.5445)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F258F #558F25
analogous
#2A258F #5F258F #8F258A
triadic
#5F258F #8F5F25 #258F5F
tetradic
#5F258F #8F2A25 #558F25 #258A8F
square
#5F258F #8F2A25 #558F25 #258A8F
split-complementary
#5F258F #8A8F25 #258F2A
monochromatic
#1E0C2E #3F185E #5F258F #7F32C0 #9D5AD4

Accessibility & contrast

On white

9.78
#5F258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5F258F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F258F
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F258F#FFFFFF#000000##FFFFFF
##5F258F1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00448D
Tritanopia (blue-blind)
#563E58
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5f258f;
/* rgb */ color: rgb(95, 37, 143);
/* oklch */ color: oklch(40.6% 0.166 305.0);
Tailwind
colors: {
  custom: {
    50: '#9165b1',
    500: '#5f258f',
    950: '#000000',
  },
}
SCSS
$custom: #5f258f;
$custom-light: #9165b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f258f",
  "rgb": {
    "r": 95,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 272.83,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.40618,
    "c": 0.16589,
    "h": 305
  },
  "luminance": 0.05739
}

Semantic roles & 50–950 ramp

primary
#5F258F
secondary
#83B957
accent
#E2468D
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5F258F

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

Preview Lab → · Contrast checker → · Palette generator →

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