#4C2FB7#4C2FB7

#4C2FB7 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.199 H 284.1°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#4C2FB7
RGBrgb(76, 47, 183)
HSLhsl(253, 59%, 45%)
HSVhsv(253, 74%, 72%)
CMYKcmyk(58.5%, 74.3%, 0%, 28.2%)
CIE-LABlab(31.78, 48.61, -67.12)
CIE-LCHlch(31.78, 82.88, 305.91°)
OKLaboklab(43.34% 0.0487 -0.1934)
OKLCHoklch(43.34% 0.199 284.1)
XYZxyz(12.5416, 6.9876, 45.4784)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2FB7 #9AB72F
analogous
#2F56B7 #4C2FB7 #902FB7
triadic
#4C2FB7 #B74C2F #2FB74C
tetradic
#4C2FB7 #B72F56 #9AB72F #2FB790
square
#4C2FB7 #B72F56 #9AB72F #2FB790
split-complementary
#4C2FB7 #B7902F #56B72F
monochromatic
#241656 #382286 #4C2FB7 #6C51D2 #9582DF

Accessibility & contrast

On white

8.76
#4C2FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#4C2FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2FB7
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2FB7#FFFFFF#000000##FFFFFF
##4C2FB71.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBB
Deuteranopia (green-blind)
#0046B4
Tritanopia (blue-blind)
#0D5571
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4c2fb7;
/* rgb */ color: rgb(76, 47, 183);
/* oklch */ color: oklch(43.3% 0.199 284.1);
Tailwind
colors: {
  custom: {
    50: '#8a6bce',
    500: '#4c2fb7',
    950: '#000000',
  },
}
SCSS
$custom: #4c2fb7;
$custom-light: #8a6bce;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2fb7",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 183
  },
  "hsl": {
    "h": 252.794,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43337,
    "c": 0.19941,
    "h": 284.1
  },
  "luminance": 0.06988
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C2FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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