#4C2F90#4C2F90

#4C2F90 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.8% C 0.152 H 291.8°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#4C2F90
RGBrgb(76, 47, 144)
HSLhsl(258, 51%, 37%)
HSVhsv(258, 67%, 56%)
CMYKcmyk(47.2%, 67.4%, 0%, 43.5%)
CIE-LABlab(28.33, 37.05, -49.18)
CIE-LCHlch(28.33, 61.58, 306.99°)
OKLaboklab(39.82% 0.0562 -0.1407)
OKLCHoklch(39.82% 0.152 291.8)
XYZxyz(9.0296, 5.5828, 26.9820)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2F90 #73902F
analogous
#2F4390 #4C2F90 #7C2F90
triadic
#4C2F90 #904C2F #2F904C
tetradic
#4C2F90 #902F43 #73902F #2F907C
square
#4C2F90 #902F43 #73902F #2F907C
split-complementary
#4C2F90 #907C2F #43902F
monochromatic
#1B1134 #342062 #4C2F90 #643EBE #896BCF

Accessibility & contrast

On white

9.92
#4C2F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4C2F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2F90
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2F90#FFFFFF#000000##FFFFFF
##4C2F901.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004493
Deuteranopia (green-blind)
#00418E
Tritanopia (blue-blind)
#37465B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4c2f90;
/* rgb */ color: rgb(76, 47, 144);
/* oklch */ color: oklch(39.8% 0.152 291.8);
Tailwind
colors: {
  custom: {
    50: '#8469b1',
    500: '#4c2f90',
    950: '#000000',
  },
}
SCSS
$custom: #4c2f90;
$custom-light: #8469b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2f90",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 144
  },
  "hsl": {
    "h": 257.938,
    "s": 50.785,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39823,
    "c": 0.15157,
    "h": 291.8
  },
  "luminance": 0.05583
}

Semantic roles & 50–950 ramp

primary
#4C2F90
secondary
#9EB665
accent
#DA4EB0
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #4C2F90

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

Preview Lab → · Contrast checker → · Palette generator →

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