#25156A#25156A

#25156A is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.137 H 281.9°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#25156A
RGBrgb(37, 21, 106)
HSLhsl(251, 67%, 25%)
HSVhsv(251, 80%, 42%)
CMYKcmyk(65.1%, 80.2%, 0%, 58.4%)
CIE-LABlab(15.33, 33.37, -46.50)
CIE-LCHlch(15.33, 57.23, 305.66°)
OKLaboklab(28.49% 0.0283 -0.1341)
OKLCHoklch(28.49% 0.137 281.9)
XYZxyz(3.6318, 1.9700, 13.8217)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25156A #5A6A15
analogous
#15306A #25156A #4F156A
triadic
#25156A #6A2515 #156A25
tetradic
#25156A #6A1530 #5A6A15 #156A4F
square
#25156A #6A1530 #5A6A15 #156A4F
split-complementary
#25156A #6A4F15 #306A15
monochromatic
#09051A #130B37 #25156A #371F9D #4929D0

Accessibility & contrast

On white

15.06
#25156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#25156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25156A
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25156A#FFFFFF#000000##FFFFFF
##25156A1.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296C
Deuteranopia (green-blind)
#002368
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #25156a;
/* rgb */ color: rgb(37, 21, 106);
/* oklch */ color: oklch(28.5% 0.137 281.9);
Tailwind
colors: {
  custom: {
    50: '#6a5596',
    500: '#25156a',
    950: '#000000',
  },
}
SCSS
$custom: #25156a;
$custom-light: #6a5596;
$custom-dark: #000000;
JSON
{
  "hex": "#25156a",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 251.294,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28487,
    "c": 0.13707,
    "h": 281.9
  },
  "luminance": 0.0197
}

Semantic roles & 50–950 ramp

primary
#25156A
secondary
#8DA13A
accent
#EA3EC9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #25156A

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

Preview Lab → · Contrast checker → · Palette generator →

#25156A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva