#25126E#25126E

#25126E is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.145 H 281.5°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#25126E
RGBrgb(37, 18, 110)
HSLhsl(252, 72%, 25%)
HSVhsv(252, 84%, 43%)
CMYKcmyk(66.4%, 83.6%, 0%, 56.9%)
CIE-LABlab(15.23, 36.25, -49.28)
CIE-LCHlch(15.23, 61.17, 306.34°)
OKLaboklab(28.55% 0.029 -0.1422)
OKLCHoklch(28.55% 0.145 281.5)
XYZxyz(3.7928, 1.9514, 14.9256)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25126E #5B6E12
analogous
#122D6E #25126E #53126E
triadic
#25126E #6E2512 #126E25
tetradic
#25126E #6E122D #5B6E12 #126E53
square
#25126E #6E122D #5B6E12 #126E53
split-complementary
#25126E #6E5312 #2D6E12
monochromatic
#09041A #130939 #25126E #371BA3 #4823D7

Accessibility & contrast

On white

15.10
#25126E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#25126E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25126E
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25126E#FFFFFF#000000##FFFFFF
##25126E1.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002971
Deuteranopia (green-blind)
#00236C
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #25126e;
/* rgb */ color: rgb(37, 18, 110);
/* oklch */ color: oklch(28.6% 0.145 281.5);
Tailwind
colors: {
  custom: {
    50: '#6b5399',
    500: '#25126e',
    950: '#000000',
  },
}
SCSS
$custom: #25126e;
$custom-light: #6b5399;
$custom-dark: #000000;
JSON
{
  "hex": "#25126e",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 110
  },
  "hsl": {
    "h": 252.391,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28554,
    "c": 0.1451,
    "h": 281.5
  },
  "luminance": 0.01952
}

Semantic roles & 50–950 ramp

primary
#25126E
secondary
#8EA537
accent
#EF39C9
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #25126E

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

Preview Lab → · Contrast checker → · Palette generator →

#25126E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva