#4D25B1#4D25B1

#4D25B1 is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 41.7% C 0.202 H 286.9°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#4D25B1
RGBrgb(77, 37, 177)
HSLhsl(257, 65%, 42%)
HSVhsv(257, 79%, 69%)
CMYKcmyk(56.5%, 79.1%, 0%, 30.6%)
CIE-LABlab(29.60, 51.86, -67.13)
CIE-LCHlch(29.60, 84.83, 307.68°)
OKLaboklab(41.66% 0.0588 -0.1933)
OKLCHoklch(41.66% 0.202 286.9)
XYZxyz(11.6556, 6.0746, 42.1448)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D25B1 #89B125
analogous
#2543B1 #4D25B1 #9325B1
triadic
#4D25B1 #B14D25 #25B14D
tetradic
#4D25B1 #B12543 #89B125 #25B193
square
#4D25B1 #B12543 #89B125 #25B193
split-complementary
#4D25B1 #B19325 #43B125
monochromatic
#21104C #371A7E #4D25B1 #693DD6 #906FE1

Accessibility & contrast

On white

9.48
#4D25B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4D25B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D25B1
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D25B1#FFFFFF#000000##FFFFFF
##4D25B11.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B5
Deuteranopia (green-blind)
#0042AE
Tritanopia (blue-blind)
#1E4E6B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d25b1;
/* rgb */ color: rgb(77, 37, 177);
/* oklch */ color: oklch(41.7% 0.202 286.9);
Tailwind
colors: {
  custom: {
    50: '#8a65ca',
    500: '#4d25b1',
    950: '#000000',
  },
}
SCSS
$custom: #4d25b1;
$custom-light: #8a65ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4d25b1",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 177
  },
  "hsl": {
    "h": 257.143,
    "s": 65.421,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41659,
    "c": 0.20204,
    "h": 286.9
  },
  "luminance": 0.06075
}

Semantic roles & 50–950 ramp

primary
#4D25B1
secondary
#ADC86A
accent
#E83FB8
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4D25B1

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

Preview Lab → · Contrast checker → · Palette generator →

#4D25B1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva