#4D25B2#4D25B2

#4D25B2 is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 41.8% C 0.203 H 286.7°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#4D25B2
RGBrgb(77, 37, 178)
HSLhsl(257, 66%, 42%)
HSVhsv(257, 79%, 70%)
CMYKcmyk(56.7%, 79.2%, 0%, 30.2%)
CIE-LABlab(29.70, 52.14, -67.57)
CIE-LCHlch(29.70, 85.34, 307.65°)
OKLaboklab(41.76% 0.0585 -0.1945)
OKLCHoklch(41.76% 0.203 286.7)
XYZxyz(11.7556, 6.1146, 42.6716)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D25B2 #8AB225
analogous
#2544B2 #4D25B2 #9325B2
triadic
#4D25B2 #B24D25 #25B24D
tetradic
#4D25B2 #B22544 #8AB225 #25B293
square
#4D25B2 #B22544 #8AB225 #25B293
split-complementary
#4D25B2 #B29325 #44B225
monochromatic
#21104D #371A7F #4D25B2 #693DD7 #9070E1

Accessibility & contrast

On white

9.45
#4D25B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4D25B2
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D25B2#FFFFFF#000000##FFFFFF
##4D25B21.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B6
Deuteranopia (green-blind)
#0042AF
Tritanopia (blue-blind)
#1D4E6B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4d25b2;
/* rgb */ color: rgb(77, 37, 178);
/* oklch */ color: oklch(41.8% 0.203 286.7);
Tailwind
colors: {
  custom: {
    50: '#8b65ca',
    500: '#4d25b2',
    950: '#000000',
  },
}
SCSS
$custom: #4d25b2;
$custom-light: #8b65ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4d25b2",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 178
  },
  "hsl": {
    "h": 257.021,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41758,
    "c": 0.20316,
    "h": 286.7
  },
  "luminance": 0.06115
}

Semantic roles & 50–950 ramp

primary
#4D25B2
secondary
#AEC86B
accent
#E93FB9
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4D25B2

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

Preview Lab → · Contrast checker → · Palette generator →

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