#25126D#25126D

#25126D is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.144 H 281.8°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#25126D
RGBrgb(37, 18, 109)
HSLhsl(253, 72%, 25%)
HSVhsv(253, 83%, 43%)
CMYKcmyk(66.1%, 83.5%, 0%, 57.3%)
CIE-LABlab(15.11, 35.93, -48.82)
CIE-LCHlch(15.11, 60.61, 306.35°)
OKLaboklab(28.44% 0.0293 -0.1408)
OKLCHoklch(28.44% 0.144 281.8)
XYZxyz(3.7387, 1.9298, 14.6405)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25126D #5A6D12
analogous
#122D6D #25126D #52126D
triadic
#25126D #6D2512 #126D25
tetradic
#25126D #6D122D #5A6D12 #126D52
square
#25126D #6D122D #5A6D12 #126D52
split-complementary
#25126D #6D5212 #2D6D12
monochromatic
#09041A #130938 #25126D #371BA2 #4923D6

Accessibility & contrast

On white

15.15
#25126D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #25126D
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25126D#FFFFFF#000000##FFFFFF
##25126D1.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002970
Deuteranopia (green-blind)
#00236B
Tritanopia (blue-blind)
#002D40
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #25126d;
/* rgb */ color: rgb(37, 18, 109);
/* oklch */ color: oklch(28.4% 0.144 281.8);
Tailwind
colors: {
  custom: {
    50: '#6b5398',
    500: '#25126d',
    950: '#000000',
  },
}
SCSS
$custom: #25126d;
$custom-light: #6b5398;
$custom-dark: #000000;
JSON
{
  "hex": "#25126d",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 109
  },
  "hsl": {
    "h": 252.527,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28439,
    "c": 0.14386,
    "h": 281.8
  },
  "luminance": 0.0193
}

Semantic roles & 50–950 ramp

primary
#25126D
secondary
#8DA437
accent
#EE39C9
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #25126D

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

Preview Lab → · Contrast checker → · Palette generator →

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