#25156C#25156C

#25156C is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.140 H 281.4°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#25156C
RGBrgb(37, 21, 108)
HSLhsl(251, 67%, 25%)
HSVhsv(251, 81%, 42%)
CMYKcmyk(65.7%, 80.6%, 0%, 57.6%)
CIE-LABlab(15.55, 34.03, -47.44)
CIE-LCHlch(15.55, 58.38, 305.65°)
OKLaboklab(28.71% 0.0277 -0.1369)
OKLCHoklch(28.71% 0.14 281.4)
XYZxyz(3.7370, 2.0121, 14.3759)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25156C #5C6C15
analogous
#15316C #25156C #50156C
triadic
#25156C #6C2515 #156C25
tetradic
#25156C #6C1531 #5C6C15 #156C50
square
#25156C #6C1531 #5C6C15 #156C50
split-complementary
#25156C #6C5015 #316C15
monochromatic
#09051A #130B39 #25156C #371F9F #4829D2

Accessibility & contrast

On white

14.97
#25156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#25156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25156C
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25156C#FFFFFF#000000##FFFFFF
##25156C1.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00246A
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #25156c;
/* rgb */ color: rgb(37, 21, 108);
/* oklch */ color: oklch(28.7% 0.140 281.4);
Tailwind
colors: {
  custom: {
    50: '#6a5597',
    500: '#25156c',
    950: '#000000',
  },
}
SCSS
$custom: #25156c;
$custom-light: #6a5597;
$custom-dark: #000000;
JSON
{
  "hex": "#25156c",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 251.034,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28709,
    "c": 0.13964,
    "h": 281.4
  },
  "luminance": 0.02012
}

Semantic roles & 50–950 ramp

primary
#25156C
secondary
#8FA33A
accent
#EA3DCB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #25156C

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

Preview Lab → · Contrast checker → · Palette generator →

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