#4C247B#4C247B

#4C247B is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.140 H 300.6°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#4C247B
RGBrgb(76, 36, 123)
HSLhsl(268, 55%, 31%)
HSVhsv(268, 71%, 48%)
CMYKcmyk(38.2%, 70.7%, 0%, 51.8%)
CIE-LABlab(24.41, 37.23, -42.42)
CIE-LCHlch(24.41, 56.44, 311.27°)
OKLaboklab(36.48% 0.0715 -0.1208)
OKLCHoklch(36.48% 0.14 300.6)
XYZxyz(7.1856, 4.2283, 19.1726)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C247B #537B24
analogous
#24277B #4C247B #77247B
triadic
#4C247B #7B4C24 #247B4C
tetradic
#4C247B #7B2427 #537B24 #247B77
square
#4C247B #7B2427 #537B24 #247B77
split-complementary
#4C247B #7B7724 #277B24
monochromatic
#11081C #2F164C #4C247B #6932AA #884ECB

Accessibility & contrast

On white

11.38
#4C247B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4C247B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C247B
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C247B#FFFFFF#000000##FFFFFF
##4C247B1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#42384C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4c247b;
/* rgb */ color: rgb(76, 36, 123);
/* oklch */ color: oklch(36.5% 0.140 300.6);
Tailwind
colors: {
  custom: {
    50: '#8262a2',
    500: '#4c247b',
    950: '#000000',
  },
}
SCSS
$custom: #4c247b;
$custom-light: #8262a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c247b",
  "rgb": {
    "r": 76,
    "g": 36,
    "b": 123
  },
  "hsl": {
    "h": 267.586,
    "s": 54.717,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36476,
    "c": 0.14043,
    "h": 300.6
  },
  "luminance": 0.04228
}

Semantic roles & 50–950 ramp

primary
#4C247B
secondary
#81AD4D
accent
#DE4A9A
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4C247B

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

Preview Lab → · Contrast checker → · Palette generator →

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