#4C2F9B#4C2F9B

#4C2F9B is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.8% C 0.165 H 289.3°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#4C2F9B
RGBrgb(76, 47, 155)
HSLhsl(256, 53%, 40%)
HSVhsv(256, 70%, 61%)
CMYKcmyk(51%, 69.7%, 0%, 39.2%)
CIE-LABlab(29.25, 40.30, -54.44)
CIE-LCHlch(29.25, 67.73, 306.52°)
OKLaboklab(40.77% 0.0546 -0.1562)
OKLCHoklch(40.77% 0.165 289.3)
XYZxyz(9.9117, 5.9357, 31.6274)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2F9B #7E9B2F
analogous
#2F489B #4C2F9B #822F9B
triadic
#4C2F9B #9B4C2F #2F9B4C
tetradic
#4C2F9B #9B2F48 #7E9B2F #2F9B82
square
#4C2F9B #9B2F48 #7E9B2F #2F9B82
split-complementary
#4C2F9B #9B822F #489B2F
monochromatic
#1E133D #35216C #4C2F9B #6542C6 #8B71D4

Accessibility & contrast

On white

9.60
#4C2F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4C2F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2F9B
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2F9B#FFFFFF#000000##FFFFFF
##4C2F9B1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#004299
Tritanopia (blue-blind)
#304A61
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4c2f9b;
/* rgb */ color: rgb(76, 47, 155);
/* oklch */ color: oklch(40.8% 0.165 289.3);
Tailwind
colors: {
  custom: {
    50: '#866ab9',
    500: '#4c2f9b',
    950: '#000000',
  },
}
SCSS
$custom: #4c2f9b;
$custom-light: #866ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2f9b",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 256.111,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40765,
    "c": 0.16545,
    "h": 289.3
  },
  "luminance": 0.05936
}

Semantic roles & 50–950 ramp

primary
#4C2F9B
secondary
#A6BB6A
accent
#DD4BB6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4C2F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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