#4C2FBA#4C2FBA

#4C2FBA is a dark, highly saturated violet. Relative luminance 0.071; OKLCH L 43.6% C 0.203 H 283.7°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#4C2FBA
RGBrgb(76, 47, 186)
HSLhsl(253, 60%, 46%)
HSVhsv(253, 75%, 73%)
CMYKcmyk(59.1%, 74.7%, 0%, 27.1%)
CIE-LABlab(32.06, 49.49, -68.43)
CIE-LCHlch(32.06, 84.45, 305.88°)
OKLaboklab(43.63% 0.048 -0.1972)
OKLCHoklch(43.63% 0.203 283.7)
XYZxyz(12.8572, 7.1139, 47.1405)
Luminance0.0712 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2FBA #9DBA2F
analogous
#2F57BA #4C2FBA #912FBA
triadic
#4C2FBA #BA4C2F #2FBA4C
tetradic
#4C2FBA #BA2F57 #9DBA2F #2FBA91
square
#4C2FBA #BA2F57 #9DBA2F #2FBA91
split-complementary
#4C2FBA #BA912F #57BA2F
monochromatic
#241658 #382389 #4C2FBA #6E53D3 #9784E0

Accessibility & contrast

On white

8.67
#4C2FBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#4C2FBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2FBA
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2FBA#FFFFFF#000000##FFFFFF
##4C2FBA1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BE
Deuteranopia (green-blind)
#0047B7
Tritanopia (blue-blind)
#035672
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4c2fba;
/* rgb */ color: rgb(76, 47, 186);
/* oklch */ color: oklch(43.6% 0.203 283.7);
Tailwind
colors: {
  custom: {
    50: '#8b6bd0',
    500: '#4c2fba',
    950: '#000000',
  },
}
SCSS
$custom: #4c2fba;
$custom-light: #8b6bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2fba",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 186
  },
  "hsl": {
    "h": 252.518,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.43625,
    "c": 0.20294,
    "h": 283.7
  },
  "luminance": 0.07115
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C2FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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