#25175F#25175F

#25175F is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.120 H 284.2°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#25175F
RGBrgb(37, 23, 95)
HSLhsl(252, 61%, 23%)
HSVhsv(252, 76%, 37%)
CMYKcmyk(61.1%, 75.8%, 0%, 62.7%)
CIE-LABlab(14.58, 28.53, -40.46)
CIE-LCHlch(14.58, 49.51, 305.19°)
OKLaboklab(27.61% 0.0295 -0.1165)
OKLCHoklch(27.61% 0.12 284.2)
XYZxyz(3.1343, 1.8321, 11.0127)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25175F #515F17
analogous
#172D5F #25175F #49175F
triadic
#25175F #5F2517 #175F25
tetradic
#25175F #5F172D #515F17 #175F49
square
#25175F #5F172D #515F17 #175F49
split-complementary
#25175F #5F4917 #2D5F17
monochromatic
#0A0619 #120B2E #25175F #382390 #4B2FC2

Accessibility & contrast

On white

15.37
#25175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#25175F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25175F
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25175F#FFFFFF#000000##FFFFFF
##25175F1.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00225E
Tritanopia (blue-blind)
#072A39
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #25175f;
/* rgb */ color: rgb(37, 23, 95);
/* oklch */ color: oklch(27.6% 0.120 284.2);
Tailwind
colors: {
  custom: {
    50: '#67558d',
    500: '#25175f',
    950: '#000000',
  },
}
SCSS
$custom: #25175f;
$custom-light: #67558d;
$custom-dark: #000000;
JSON
{
  "hex": "#25175f",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 251.667,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27606,
    "c": 0.12014,
    "h": 284.2
  },
  "luminance": 0.01832
}

Semantic roles & 50–950 ramp

primary
#25175F
secondary
#84963C
accent
#E444C5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #25175F

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

Preview Lab → · Contrast checker → · Palette generator →

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