#25125C#25125C

#25125C is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.5% C 0.122 H 286.5°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#25125C
RGBrgb(37, 18, 92)
HSLhsl(255, 67%, 22%)
HSVhsv(255, 80%, 36%)
CMYKcmyk(59.8%, 80.4%, 0%, 63.9%)
CIE-LABlab(13.22, 30.47, -40.68)
CIE-LCHlch(13.22, 50.83, 306.83°)
OKLaboklab(26.55% 0.0346 -0.1171)
OKLCHoklch(26.55% 0.122 286.5)
XYZxyz(2.9104, 1.5985, 10.2783)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25125C #495C12
analogous
#12245C #25125C #4A125C
triadic
#25125C #5C2512 #125C25
tetradic
#25125C #5C1224 #495C12 #125C4A
square
#25125C #5C1224 #495C12 #125C4A
split-complementary
#25125C #5C4A12 #245C12
monochromatic
#0A051A #100829 #25125C #3A1C8F #4E26C2

Accessibility & contrast

On white

15.91
#25125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #25125C
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25125C#FFFFFF#000000##FFFFFF
##25125C1.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#00205B
Tritanopia (blue-blind)
#0C2736
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #25125c;
/* rgb */ color: rgb(37, 18, 92);
/* oklch */ color: oklch(26.5% 0.122 286.5);
Tailwind
colors: {
  custom: {
    50: '#67528b',
    500: '#25125c',
    950: '#000000',
  },
}
SCSS
$custom: #25125c;
$custom-light: #67528b;
$custom-dark: #000000;
JSON
{
  "hex": "#25125c",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 255.405,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26549,
    "c": 0.12212,
    "h": 286.5
  },
  "luminance": 0.01599
}

Semantic roles & 50–950 ramp

primary
#25125C
secondary
#7C9435
accent
#EA3EBE
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #25125C

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

Preview Lab → · Contrast checker → · Palette generator →

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