#25127C#25127C

#25127C is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.162 H 278.6°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#25127C
RGBrgb(37, 18, 124)
HSLhsl(251, 75%, 28%)
HSVhsv(251, 85%, 49%)
CMYKcmyk(70.2%, 85.5%, 0%, 51.4%)
CIE-LABlab(16.90, 40.63, -55.55)
CIE-LCHlch(16.90, 68.83, 306.18°)
OKLaboklab(30.2% 0.0243 -0.1604)
OKLCHoklch(30.2% 0.162 278.6)
XYZxyz(4.6162, 2.2808, 19.2618)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25127C #697C12
analogous
#12347C #25127C #5A127C
triadic
#25127C #7C2512 #127C25
tetradic
#25127C #7C1234 #697C12 #127C5A
square
#25127C #7C1234 #697C12 #127C5A
split-complementary
#25127C #7C5A12 #347C12
monochromatic
#08041B #150A47 #25127C #351AB1 #4929E0

Accessibility & contrast

On white

14.42
#25127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#25127C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25127C
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25127C#FFFFFF#000000##FFFFFF
##25127C1.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7F
Deuteranopia (green-blind)
#00257A
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #25127c;
/* rgb */ color: rgb(37, 18, 124);
/* oklch */ color: oklch(30.2% 0.162 278.6);
Tailwind
colors: {
  custom: {
    50: '#6e54a3',
    500: '#25127c',
    950: '#000000',
  },
}
SCSS
$custom: #25127c;
$custom-light: #6e54a3;
$custom-dark: #000000;
JSON
{
  "hex": "#25127c",
  "rgb": {
    "r": 37,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 250.755,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30195,
    "c": 0.16227,
    "h": 278.6
  },
  "luminance": 0.02281
}

Semantic roles & 50–950 ramp

primary
#25127C
secondary
#9CB238
accent
#F137D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #25127C

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

Preview Lab → · Contrast checker → · Palette generator →

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