#5F25A8#5F25A8

#5F25A8 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.7% C 0.193 H 297.6°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#5F25A8
RGBrgb(95, 37, 168)
HSLhsl(267, 64%, 40%)
HSVhsv(267, 78%, 66%)
CMYKcmyk(43.5%, 78%, 0%, 34.1%)
CIE-LABlab(30.84, 52.02, -59.63)
CIE-LCHlch(30.84, 79.13, 311.10°)
OKLaboklab(42.74% 0.0891 -0.1707)
OKLCHoklch(42.74% 0.193 297.6)
XYZxyz(12.4469, 6.5830, 37.6530)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F25A8 #6EA825
analogous
#252DA8 #5F25A8 #A025A8
triadic
#5F25A8 #A85F25 #25A85F
tetradic
#5F25A8 #A8252D #6EA825 #25A8A0
square
#5F25A8 #A8252D #6EA825 #25A8A0
split-complementary
#5F25A8 #A8A025 #2DA825
monochromatic
#260F44 #431A76 #5F25A8 #7C37D3 #9D69DE

Accessibility & contrast

On white

9.07
#5F25A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#5F25A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F25A8
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F25A8#FFFFFF#000000##FFFFFF
##5F25A81.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AC
Deuteranopia (green-blind)
#0047A6
Tritanopia (blue-blind)
#4C4966
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f25a8;
/* rgb */ color: rgb(95, 37, 168);
/* oklch */ color: oklch(42.7% 0.193 297.6);
Tailwind
colors: {
  custom: {
    50: '#9466c3',
    500: '#5f25a8',
    950: '#000000',
  },
}
SCSS
$custom: #5f25a8;
$custom-light: #9466c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f25a8",
  "rgb": {
    "r": 95,
    "g": 37,
    "b": 168
  },
  "hsl": {
    "h": 266.565,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4274,
    "c": 0.19255,
    "h": 297.6
  },
  "luminance": 0.06583
}

Semantic roles & 50–950 ramp

primary
#5F25A8
secondary
#9AC465
accent
#E7419D
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5F25A8

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

Preview Lab → · Contrast checker → · Palette generator →

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