#25107E#25107E

#25107E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.166 H 278.4°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#25107E
RGBrgb(37, 16, 126)
HSLhsl(251, 77%, 28%)
HSVhsv(251, 87%, 49%)
CMYKcmyk(70.6%, 87.3%, 0%, 50.6%)
CIE-LABlab(16.84, 42.12, -56.92)
CIE-LCHlch(16.84, 70.81, 306.50°)
OKLaboklab(30.23% 0.0244 -0.1644)
OKLCHoklch(30.23% 0.166 278.4)
XYZxyz(4.7129, 2.2698, 19.9244)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25107E #697E10
analogous
#10327E #25107E #5C107E
triadic
#25107E #7E2510 #107E25
tetradic
#25107E #7E1032 #697E10 #107E5C
square
#25107E #7E1032 #697E10 #107E5C
split-complementary
#25107E #7E5C10 #327E10
monochromatic
#08031B #150948 #25107E #3517B4 #4925E3

Accessibility & contrast

On white

14.44
#25107E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#25107E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25107E
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25107E#FFFFFF#000000##FFFFFF
##25107E1.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #25107e;
/* rgb */ color: rgb(37, 16, 126);
/* oklch */ color: oklch(30.2% 0.166 278.4);
Tailwind
colors: {
  custom: {
    50: '#6f54a5',
    500: '#25107e',
    950: '#000000',
  },
}
SCSS
$custom: #25107e;
$custom-light: #6f54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#25107e",
  "rgb": {
    "r": 37,
    "g": 16,
    "b": 126
  },
  "hsl": {
    "h": 251.455,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3023,
    "c": 0.16617,
    "h": 278.4
  },
  "luminance": 0.0227
}

Semantic roles & 50–950 ramp

primary
#25107E
secondary
#9CB436
accent
#F434CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #25107E

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

Preview Lab → · Contrast checker → · Palette generator →

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