#4D25A8#4D25A8

#4D25A8 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.192 H 288.7°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#4D25A8
RGBrgb(77, 37, 168)
HSLhsl(258, 64%, 40%)
HSVhsv(258, 78%, 66%)
CMYKcmyk(54.2%, 78%, 0%, 34.1%)
CIE-LABlab(28.71, 49.35, -63.19)
CIE-LCHlch(28.71, 80.18, 307.99°)
OKLaboklab(40.78% 0.0615 -0.1818)
OKLCHoklch(40.78% 0.192 288.7)
XYZxyz(10.7879, 5.7275, 37.5753)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D25A8 #80A825
analogous
#253EA8 #4D25A8 #8F25A8
triadic
#4D25A8 #A84D25 #25A84D
tetradic
#4D25A8 #A8253E #80A825 #25A88F
square
#4D25A8 #A8253E #80A825 #25A88F
split-complementary
#4D25A8 #A88F25 #3EA825
monochromatic
#1F0F44 #361A76 #4D25A8 #6737D3 #8D69DE

Accessibility & contrast

On white

9.79
#4D25A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4D25A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D25A8
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D25A8#FFFFFF#000000##FFFFFF
##4D25A81.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#0040A6
Tritanopia (blue-blind)
#294A66
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4d25a8;
/* rgb */ color: rgb(77, 37, 168);
/* oklch */ color: oklch(40.8% 0.192 288.7);
Tailwind
colors: {
  custom: {
    50: '#8965c3',
    500: '#4d25a8',
    950: '#000000',
  },
}
SCSS
$custom: #4d25a8;
$custom-light: #8965c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4d25a8",
  "rgb": {
    "r": 77,
    "g": 37,
    "b": 168
  },
  "hsl": {
    "h": 258.321,
    "s": 63.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40775,
    "c": 0.1919,
    "h": 288.7
  },
  "luminance": 0.05728
}

Semantic roles & 50–950 ramp

primary
#4D25A8
secondary
#A7C465
accent
#E741B4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4D25A8

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

Preview Lab → · Contrast checker → · Palette generator →

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