#25125A#25125A

#25125A is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.119 H 287.1°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#25125A
RGBrgb(37, 18, 90)
HSLhsl(256, 67%, 21%)
HSVhsv(256, 80%, 35%)
CMYKcmyk(58.9%, 80%, 0%, 64.7%)
CIE-LABlab(13.01, 29.83, -39.69)
CIE-LCHlch(13.01, 49.64, 306.93°)
OKLaboklab(26.33% 0.0352 -0.1142)
OKLCHoklch(26.33% 0.119 287.1)
XYZxyz(2.8242, 1.5640, 9.8239)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25125A #475A12
analogous
#12235A #25125A #49125A
triadic
#25125A #5A2512 #125A25
tetradic
#25125A #5A1223 #475A12 #125A49
square
#25125A #5A1223 #475A12 #125A49
split-complementary
#25125A #5A4912 #235A12
monochromatic
#0A051A #100827 #25125A #3A1C8D #4F26C0

Accessibility & contrast

On white

16.00
#25125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#25125A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25125A
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25125A#FFFFFF#000000##FFFFFF
##25125A1.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235C
Deuteranopia (green-blind)
#002059
Tritanopia (blue-blind)
#0E2635
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #25125a;
/* rgb */ color: rgb(37, 18, 90);
/* oklch */ color: oklch(26.3% 0.119 287.1);
Tailwind
colors: {
  custom: {
    50: '#675289',
    500: '#25125a',
    950: '#000000',
  },
}
SCSS
$custom: #25125a;
$custom-light: #675289;
$custom-dark: #000000;
JSON
{
  "hex": "#25125a",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 255.833,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26335,
    "c": 0.11949,
    "h": 287.1
  },
  "luminance": 0.01564
}

Semantic roles & 50–950 ramp

primary
#25125A
secondary
#7A9335
accent
#EA3EBC
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #25125A

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

Preview Lab → · Contrast checker → · Palette generator →

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