#25125D#25125D

#25125D is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.7% C 0.123 H 286.2°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#25125D
RGBrgb(37, 18, 93)
HSLhsl(255, 68%, 22%)
HSVhsv(255, 81%, 36%)
CMYKcmyk(60.2%, 80.6%, 0%, 63.5%)
CIE-LABlab(13.33, 30.80, -41.18)
CIE-LCHlch(13.33, 51.42, 306.79°)
OKLaboklab(26.66% 0.0344 -0.1185)
OKLCHoklch(26.66% 0.123 286.2)
XYZxyz(2.9544, 1.6161, 10.5101)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25125D #4A5D12
analogous
#12255D #25125D #4B125D
triadic
#25125D #5D2512 #125D25
tetradic
#25125D #5D1225 #4A5D12 #125D4B
square
#25125D #5D1225 #4A5D12 #125D4B
split-complementary
#25125D #5D4B12 #255D12
monochromatic
#0A051A #11082A #25125D #391C90 #4E26C4

Accessibility & contrast

On white

15.87
#25125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#25125D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25125D
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25125D#FFFFFF#000000##FFFFFF
##25125D1.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#00205C
Tritanopia (blue-blind)
#0B2736
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #25125d;
/* rgb */ color: rgb(37, 18, 93);
/* oklch */ color: oklch(26.7% 0.123 286.2);
Tailwind
colors: {
  custom: {
    50: '#67528c',
    500: '#25125d',
    950: '#000000',
  },
}
SCSS
$custom: #25125d;
$custom-light: #67528c;
$custom-dark: #000000;
JSON
{
  "hex": "#25125d",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 255.2,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26656,
    "c": 0.12343,
    "h": 286.2
  },
  "luminance": 0.01616
}

Semantic roles & 50–950 ramp

primary
#25125D
secondary
#7D9535
accent
#EA3DBF
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #25125D

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

Preview Lab → · Contrast checker → · Palette generator →

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