#25125E#25125E

#25125E is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.8% C 0.125 H 285.8°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#25125E
RGBrgb(37, 18, 94)
HSLhsl(255, 68%, 22%)
HSVhsv(255, 81%, 37%)
CMYKcmyk(60.6%, 80.9%, 0%, 63.1%)
CIE-LABlab(13.44, 31.12, -41.67)
CIE-LCHlch(13.44, 52.01, 306.75°)
OKLaboklab(26.76% 0.034 -0.12)
OKLCHoklch(26.76% 0.125 285.8)
XYZxyz(2.9990, 1.6339, 10.7448)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25125E #4B5E12
analogous
#12255E #25125E #4B125E
triadic
#25125E #5E2512 #125E25
tetradic
#25125E #5E1225 #4B5E12 #125E4B
square
#25125E #5E1225 #4B5E12 #125E4B
split-complementary
#25125E #5E4B12 #255E12
monochromatic
#0A051A #11082B #25125E #391C91 #4D26C5

Accessibility & contrast

On white

15.83
#25125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#25125E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25125E
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25125E#FFFFFF#000000##FFFFFF
##25125E1.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002460
Deuteranopia (green-blind)
#00205D
Tritanopia (blue-blind)
#092737
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #25125e;
/* rgb */ color: rgb(37, 18, 94);
/* oklch */ color: oklch(26.8% 0.125 285.8);
Tailwind
colors: {
  custom: {
    50: '#67528c',
    500: '#25125e',
    950: '#000000',
  },
}
SCSS
$custom: #25125e;
$custom-light: #67528c;
$custom-dark: #000000;
JSON
{
  "hex": "#25125e",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 255,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26764,
    "c": 0.12473,
    "h": 285.8
  },
  "luminance": 0.01634
}

Semantic roles & 50–950 ramp

primary
#25125E
secondary
#7E9635
accent
#EB3DBF
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #25125E

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

Preview Lab → · Contrast checker → · Palette generator →

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