#25107F#25107F

#25107F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.4% C 0.167 H 278.3°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#25107F
RGBrgb(37, 16, 127)
HSLhsl(251, 78%, 28%)
HSVhsv(251, 87%, 50%)
CMYKcmyk(70.9%, 87.4%, 0%, 50.2%)
CIE-LABlab(16.97, 42.42, -57.35)
CIE-LCHlch(16.97, 71.33, 306.49°)
OKLaboklab(30.35% 0.024 -0.1656)
OKLCHoklch(30.35% 0.167 278.3)
XYZxyz(4.7778, 2.2958, 20.2659)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25107F #6A7F10
analogous
#10337F #25107F #5C107F
triadic
#25107F #7F2510 #107F25
tetradic
#25107F #7F1033 #6A7F10 #107F5C
square
#25107F #7F1033 #6A7F10 #107F5C
split-complementary
#25107F #7F5C10 #337F10
monochromatic
#08031B #150949 #25107F #3517B5 #4A26E4

Accessibility & contrast

On white

14.39
#25107F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#25107F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25107F
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25107F#FFFFFF#000000##FFFFFF
##25107F1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00344A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #25107f;
/* rgb */ color: rgb(37, 16, 127);
/* oklch */ color: oklch(30.4% 0.167 278.3);
Tailwind
colors: {
  custom: {
    50: '#6f54a5',
    500: '#25107f',
    950: '#000000',
  },
}
SCSS
$custom: #25107f;
$custom-light: #6f54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#25107f",
  "rgb": {
    "r": 37,
    "g": 16,
    "b": 127
  },
  "hsl": {
    "h": 251.351,
    "s": 77.622,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30351,
    "c": 0.16736,
    "h": 278.3
  },
  "luminance": 0.02296
}

Semantic roles & 50–950 ramp

primary
#25107F
secondary
#9DB536
accent
#F434D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #25107F

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

Preview Lab → · Contrast checker → · Palette generator →

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