#4C2FB9#4C2FB9

#4C2FB9 is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.5% C 0.202 H 283.8°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#4C2FB9
RGBrgb(76, 47, 185)
HSLhsl(253, 59%, 45%)
HSVhsv(253, 75%, 73%)
CMYKcmyk(58.9%, 74.6%, 0%, 27.5%)
CIE-LABlab(31.97, 49.20, -68.00)
CIE-LCHlch(31.97, 83.93, 305.89°)
OKLaboklab(43.53% 0.0482 -0.1959)
OKLCHoklch(43.53% 0.202 283.8)
XYZxyz(12.7513, 7.0715, 46.5825)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2FB9 #9CB92F
analogous
#2F57B9 #4C2FB9 #912FB9
triadic
#4C2FB9 #B94C2F #2FB94C
tetradic
#4C2FB9 #B92F57 #9CB92F #2FB991
square
#4C2FB9 #B92F57 #9CB92F #2FB991
split-complementary
#4C2FB9 #B9912F #57B92F
monochromatic
#241657 #382388 #4C2FB9 #6D52D3 #9683DF

Accessibility & contrast

On white

8.70
#4C2FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4C2FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2FB9
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2FB9#FFFFFF#000000##FFFFFF
##4C2FB91.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBD
Deuteranopia (green-blind)
#0047B6
Tritanopia (blue-blind)
#065672
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4c2fb9;
/* rgb */ color: rgb(76, 47, 185);
/* oklch */ color: oklch(43.5% 0.202 283.8);
Tailwind
colors: {
  custom: {
    50: '#8b6bcf',
    500: '#4c2fb9',
    950: '#000000',
  },
}
SCSS
$custom: #4c2fb9;
$custom-light: #8b6bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2fb9",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 252.609,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43529,
    "c": 0.20177,
    "h": 283.8
  },
  "luminance": 0.07072
}

Semantic roles & 50–950 ramp

primary
#4C2FB9
secondary
#B8C97B
accent
#E345C2
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4C2FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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