#4C2FB8#4C2FB8

#4C2FB8 is a dark, highly saturated violet. Relative luminance 0.070; OKLCH L 43.4% C 0.201 H 284.0°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#4C2FB8
RGBrgb(76, 47, 184)
HSLhsl(253, 59%, 45%)
HSVhsv(253, 74%, 72%)
CMYKcmyk(58.7%, 74.5%, 0%, 27.8%)
CIE-LABlab(31.87, 48.90, -67.56)
CIE-LCHlch(31.87, 83.40, 305.90°)
OKLaboklab(43.43% 0.0485 -0.1946)
OKLCHoklch(43.43% 0.201 284)
XYZxyz(12.6461, 7.0294, 46.0285)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2FB8 #9BB82F
analogous
#2F56B8 #4C2FB8 #912FB8
triadic
#4C2FB8 #B84C2F #2FB84C
tetradic
#4C2FB8 #B82F56 #9BB82F #2FB891
square
#4C2FB8 #B82F56 #9BB82F #2FB891
split-complementary
#4C2FB8 #B8912F #56B82F
monochromatic
#241657 #382387 #4C2FB8 #6D52D3 #9682DF

Accessibility & contrast

On white

8.73
#4C2FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C2FB8
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2FB8#FFFFFF#000000##FFFFFF
##4C2FB81.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBC
Deuteranopia (green-blind)
#0046B5
Tritanopia (blue-blind)
#095571
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4c2fb8;
/* rgb */ color: rgb(76, 47, 184);
/* oklch */ color: oklch(43.4% 0.201 284.0);
Tailwind
colors: {
  custom: {
    50: '#8a6bce',
    500: '#4c2fb8',
    950: '#000000',
  },
}
SCSS
$custom: #4c2fb8;
$custom-light: #8a6bce;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2fb8",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 184
  },
  "hsl": {
    "h": 252.701,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43433,
    "c": 0.20059,
    "h": 284
  },
  "luminance": 0.0703
}

Semantic roles & 50–950 ramp

primary
#4C2FB8
secondary
#B8C87B
accent
#E245C1
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #4C2FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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