#4C2F8B#4C2F8B

#4C2F8B is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.4% C 0.145 H 293.1°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#4C2F8B
RGBrgb(76, 47, 139)
HSLhsl(259, 49%, 36%)
HSVhsv(259, 66%, 55%)
CMYKcmyk(45.3%, 66.2%, 0%, 45.5%)
CIE-LABlab(27.94, 35.58, -46.74)
CIE-LCHlch(27.94, 58.74, 307.28°)
OKLaboklab(39.41% 0.0568 -0.1336)
OKLCHoklch(39.41% 0.145 293.1)
XYZxyz(8.6559, 5.4334, 25.0138)
Luminance0.0543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2F8B #6E8B2F
analogous
#2F408B #4C2F8B #7A2F8B
triadic
#4C2F8B #8B4C2F #2F8B4C
tetradic
#4C2F8B #8B2F40 #6E8B2F #2F8B7A
square
#4C2F8B #8B2F40 #6E8B2F #2F8B7A
split-complementary
#4C2F8B #8B7A2F #408B2F
monochromatic
#1A1030 #33205D #4C2F8B #653EB9 #8868CC

Accessibility & contrast

On white

10.06
#4C2F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4C2F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2F8B
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2F8B#FFFFFF#000000##FFFFFF
##4C2F8B1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#3A4558
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4c2f8b;
/* rgb */ color: rgb(76, 47, 139);
/* oklch */ color: oklch(39.4% 0.145 293.1);
Tailwind
colors: {
  custom: {
    50: '#8369ae',
    500: '#4c2f8b',
    950: '#000000',
  },
}
SCSS
$custom: #4c2f8b;
$custom-light: #8369ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2f8b",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 139
  },
  "hsl": {
    "h": 258.913,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.39409,
    "c": 0.14516,
    "h": 293.1
  },
  "luminance": 0.05434
}

Semantic roles & 50–950 ramp

primary
#4C2F8B
secondary
#9AB363
accent
#D94FAD
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4C2F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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