#25155C#25155C

#25155C is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.119 H 285.7°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#25155C
RGBrgb(37, 21, 92)
HSLhsl(254, 63%, 22%)
HSVhsv(254, 77%, 36%)
CMYKcmyk(59.8%, 77.2%, 0%, 63.9%)
CIE-LABlab(13.84, 28.73, -39.67)
CIE-LCHlch(13.84, 48.98, 305.91°)
OKLaboklab(26.99% 0.032 -0.1141)
OKLCHoklch(26.99% 0.119 285.7)
XYZxyz(2.9623, 1.7022, 10.2956)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25155C #4C5C15
analogous
#15295C #25155C #49155C
triadic
#25155C #5C2515 #155C25
tetradic
#25155C #5C1529 #4C5C15 #155C49
square
#25155C #5C1529 #4C5C15 #155C49
split-complementary
#25155C #5C4915 #295C15
monochromatic
#0A0619 #110A2A #25155C #39208E #4D2CC0

Accessibility & contrast

On white

15.67
#25155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#25155C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25155C
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25155C#FFFFFF#000000##FFFFFF
##25155C1.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#00215B
Tritanopia (blue-blind)
#0C2837
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #25155c;
/* rgb */ color: rgb(37, 21, 92);
/* oklch */ color: oklch(27.0% 0.119 285.7);
Tailwind
colors: {
  custom: {
    50: '#67548b',
    500: '#25155c',
    950: '#000000',
  },
}
SCSS
$custom: #25155c;
$custom-light: #67548b;
$custom-dark: #000000;
JSON
{
  "hex": "#25155c",
  "rgb": {
    "r": 37,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 253.521,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26986,
    "c": 0.11854,
    "h": 285.7
  },
  "luminance": 0.01702
}

Semantic roles & 50–950 ramp

primary
#25155C
secondary
#7F9339
accent
#E642C1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #25155C

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

Preview Lab → · Contrast checker → · Palette generator →

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