#25117C#25117C

#25117C is a dark, vivid violet. Relative luminance 0.022; OKLCH L 30.1% C 0.163 H 278.7°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#25117C
RGBrgb(37, 17, 124)
HSLhsl(251, 76%, 28%)
HSVhsv(251, 86%, 49%)
CMYKcmyk(70.2%, 86.3%, 0%, 51.4%)
CIE-LABlab(16.74, 41.08, -55.81)
CIE-LCHlch(16.74, 69.30, 306.36°)
OKLaboklab(30.09% 0.0247 -0.1612)
OKLCHoklch(30.09% 0.163 278.7)
XYZxyz(4.6003, 2.2491, 19.2566)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#25117C #687C11
analogous
#11327C #25117C #5B117C
triadic
#25117C #7C2511 #117C25
tetradic
#25117C #7C1132 #687C11 #117C5B
square
#25117C #7C1132 #687C11 #117C5B
split-complementary
#25117C #7C5B11 #327C11
monochromatic
#08041B #150A46 #25117C #3518B2 #4926E1

Accessibility & contrast

On white

14.48
#25117C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#25117C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #25117C
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##25117C#FFFFFF#000000##FFFFFF
##25117C1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7F
Deuteranopia (green-blind)
#00257A
Tritanopia (blue-blind)
#003348
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #25117c;
/* rgb */ color: rgb(37, 17, 124);
/* oklch */ color: oklch(30.1% 0.163 278.7);
Tailwind
colors: {
  custom: {
    50: '#6e54a3',
    500: '#25117c',
    950: '#000000',
  },
}
SCSS
$custom: #25117c;
$custom-light: #6e54a3;
$custom-dark: #000000;
JSON
{
  "hex": "#25117c",
  "rgb": {
    "r": 37,
    "g": 17,
    "b": 124
  },
  "hsl": {
    "h": 251.215,
    "s": 75.887,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30089,
    "c": 0.16305,
    "h": 278.7
  },
  "luminance": 0.02249
}

Semantic roles & 50–950 ramp

primary
#25117C
secondary
#9BB237
accent
#F235CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #25117C

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

Preview Lab → · Contrast checker → · Palette generator →

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