#4B25A6#4B25A6

#4B25A6 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.190 H 288.1°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#4B25A6
RGBrgb(75, 37, 166)
HSLhsl(258, 64%, 40%)
HSVhsv(258, 78%, 65%)
CMYKcmyk(54.8%, 77.7%, 0%, 34.9%)
CIE-LABlab(28.30, 48.52, -62.67)
CIE-LCHlch(28.30, 79.25, 307.75°)
OKLaboklab(40.38% 0.0591 -0.1803)
OKLCHoklch(40.38% 0.19 288.1)
XYZxyz(10.4441, 5.5716, 36.5941)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B25A6 #80A625
analogous
#2540A6 #4B25A6 #8B25A6
triadic
#4B25A6 #A64B25 #25A64B
tetradic
#4B25A6 #A62540 #80A625 #25A68B
square
#4B25A6 #A62540 #80A625 #25A68B
split-complementary
#4B25A6 #A68B25 #40A625
monochromatic
#1E0F42 #341A74 #4B25A6 #6436D2 #8B68DD

Accessibility & contrast

On white

9.93
#4B25A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4B25A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B25A6
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B25A6#FFFFFF#000000##FFFFFF
##4B25A61.009.932.119.93
#FFFFFF9.931.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#003FA4
Tritanopia (blue-blind)
#254A65
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4b25a6;
/* rgb */ color: rgb(75, 37, 166);
/* oklch */ color: oklch(40.4% 0.190 288.1);
Tailwind
colors: {
  custom: {
    50: '#8864c2',
    500: '#4b25a6',
    950: '#000000',
  },
}
SCSS
$custom: #4b25a6;
$custom-light: #8864c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4b25a6",
  "rgb": {
    "r": 75,
    "g": 37,
    "b": 166
  },
  "hsl": {
    "h": 257.674,
    "s": 63.547,
    "l": 39.804
  },
  "oklch": {
    "l": 0.4038,
    "c": 0.1897,
    "h": 288.1
  },
  "luminance": 0.05572
}

Semantic roles & 50–950 ramp

primary
#4B25A6
secondary
#A7C364
accent
#E741B6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4B25A6

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

Preview Lab → · Contrast checker → · Palette generator →

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