#25175C#25175C

#25175C is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.3% C 0.116 H 285.0°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#25175C
RGBrgb(37, 23, 92)
HSLhsl(252, 60%, 23%)
HSVhsv(252, 75%, 36%)
CMYKcmyk(59.8%, 75%, 0%, 63.9%)
CIE-LABlab(14.28, 27.51, -38.95)
CIE-LCHlch(14.28, 47.68, 305.23°)
OKLaboklab(27.3% 0.0301 -0.112)
OKLCHoklch(27.3% 0.116 285)
XYZxyz(3.0005, 1.7786, 10.3083)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25175C #4E5C17
analogous
#172B5C #25175C #48175C
triadic
#25175C #5C2517 #175C25
tetradic
#25175C #5C172B #4E5C17 #175C48
square
#25175C #5C172B #4E5C17 #175C48
split-complementary
#25175C #5C4817 #2B5C17
monochromatic
#0A0618 #110B2B #25175C #39238D #4C2FBE

Accessibility & contrast

On white

15.49
#25175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#25175C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25175C
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25175C#FFFFFF#000000##FFFFFF
##25175C1.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00225B
Tritanopia (blue-blind)
#0B2937
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #25175c;
/* rgb */ color: rgb(37, 23, 92);
/* oklch */ color: oklch(27.3% 0.116 285.0);
Tailwind
colors: {
  custom: {
    50: '#67558b',
    500: '#25175c',
    950: '#000000',
  },
}
SCSS
$custom: #25175c;
$custom-light: #67558b;
$custom-dark: #000000;
JSON
{
  "hex": "#25175c",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 252.174,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27299,
    "c": 0.11601,
    "h": 285
  },
  "luminance": 0.01779
}

Semantic roles & 50–950 ramp

primary
#25175C
secondary
#81933C
accent
#E345C3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #25175C

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

Preview Lab → · Contrast checker → · Palette generator →

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