#5F268B#5F268B

#5F268B is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.160 H 306.2°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#5F268B
RGBrgb(95, 38, 139)
HSLhsl(274, 57%, 35%)
HSVhsv(274, 73%, 55%)
CMYKcmyk(31.7%, 72.7%, 0%, 45.5%)
CIE-LABlab(28.60, 44.37, -45.55)
CIE-LCHlch(28.60, 63.59, 314.24°)
OKLaboklab(40.42% 0.0947 -0.1294)
OKLCHoklch(40.42% 0.16 306.2)
XYZxyz(10.0716, 5.6833, 24.9875)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F268B #528B26
analogous
#2C268B #5F268B #8B2685
triadic
#5F268B #8B5F26 #268B5F
tetradic
#5F268B #8B2C26 #528B26 #26858B
square
#5F268B #8B2C26 #528B26 #26858B
split-complementary
#5F268B #858B26 #268B2C
monochromatic
#1D0C2B #3E195B #5F268B #8033BB #9D5AD2

Accessibility & contrast

On white

9.83
#5F268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5F268B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F268B
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F268B#FFFFFF#000000##FFFFFF
##5F268B1.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#004489
Tritanopia (blue-blind)
#573D56
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5f268b;
/* rgb */ color: rgb(95, 38, 139);
/* oklch */ color: oklch(40.4% 0.160 306.2);
Tailwind
colors: {
  custom: {
    50: '#9166ae',
    500: '#5f268b',
    950: '#000000',
  },
}
SCSS
$custom: #5f268b;
$custom-light: #9166ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5f268b",
  "rgb": {
    "r": 95,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 273.861,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40416,
    "c": 0.16033,
    "h": 306.2
  },
  "luminance": 0.05683
}

Semantic roles & 50–950 ramp

primary
#5F268B
secondary
#80B756
accent
#E0478A
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5F268B

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

Preview Lab → · Contrast checker → · Palette generator →

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