#4C25B2#4C25B2

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

Color values

HEX#4C25B2
RGBrgb(76, 37, 178)
HSLhsl(257, 66%, 42%)
HSVhsv(257, 79%, 70%)
CMYKcmyk(57.3%, 79.2%, 0%, 30.2%)
CIE-LABlab(29.60, 52.01, -67.74)
CIE-LCHlch(29.60, 85.41, 307.52°)
OKLaboklab(41.66% 0.057 -0.1951)
OKLCHoklch(41.66% 0.203 286.3)
XYZxyz(11.6755, 6.0733, 42.6679)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C25B2 #8BB225
analogous
#2544B2 #4C25B2 #9325B2
triadic
#4C25B2 #B24C25 #25B24C
tetradic
#4C25B2 #B22544 #8BB225 #25B293
square
#4C25B2 #B22544 #8BB225 #25B293
split-complementary
#4C25B2 #B29325 #44B225
monochromatic
#21104D #361A7F #4C25B2 #683DD7 #8F70E1

Accessibility & contrast

On white

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

On black

2.21
#4C25B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4C25B2#FFFFFF#000000##FFFFFF
##4C25B21.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c25b2;
/* rgb */ color: rgb(76, 37, 178);
/* oklch */ color: oklch(41.7% 0.203 286.3);
Tailwind
colors: {
  custom: {
    50: '#8a65ca',
    500: '#4c25b2',
    950: '#000000',
  },
}
SCSS
$custom: #4c25b2;
$custom-light: #8a65ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4c25b2",
  "rgb": {
    "r": 76,
    "g": 37,
    "b": 178
  },
  "hsl": {
    "h": 256.596,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.41662,
    "c": 0.20324,
    "h": 286.3
  },
  "luminance": 0.06074
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C25B2

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

Preview Lab → · Contrast checker → · Palette generator →

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