#4C2F7C#4C2F7C

#4C2F7C is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.2% C 0.126 H 297.5°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#4C2F7C
RGBrgb(76, 47, 124)
HSLhsl(263, 45%, 34%)
HSVhsv(263, 62%, 49%)
CMYKcmyk(38.7%, 62.1%, 0%, 51.4%)
CIE-LABlab(26.80, 31.23, -39.19)
CIE-LCHlch(26.80, 50.11, 308.55°)
OKLaboklab(38.23% 0.0579 -0.1114)
OKLCHoklch(38.23% 0.126 297.5)
XYZxyz(7.6342, 5.0247, 19.6325)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C2F7C #5F7C2F
analogous
#2F387C #4C2F7C #722F7C
triadic
#4C2F7C #7C4C2F #2F7C4C
tetradic
#4C2F7C #7C2F38 #5F7C2F #2F7C72
square
#4C2F7C #7C2F38 #5F7C2F #2F7C72
split-complementary
#4C2F7C #7C722F #387C2F
monochromatic
#160D23 #311E50 #4C2F7C #6740A8 #8762C3

Accessibility & contrast

On white

10.47
#4C2F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4C2F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C2F7C
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C2F7C#FFFFFF#000000##FFFFFF
##4C2F7C1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00407E
Deuteranopia (green-blind)
#103E7A
Tritanopia (blue-blind)
#414051
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4c2f7c;
/* rgb */ color: rgb(76, 47, 124);
/* oklch */ color: oklch(38.2% 0.126 297.5);
Tailwind
colors: {
  custom: {
    50: '#8269a2',
    500: '#4c2f7c',
    950: '#000000',
  },
}
SCSS
$custom: #4c2f7c;
$custom-light: #8269a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c2f7c",
  "rgb": {
    "r": 76,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 262.597,
    "s": 45.029,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3823,
    "c": 0.12553,
    "h": 297.5
  },
  "luminance": 0.05025
}

Semantic roles & 50–950 ramp

primary
#4C2F7C
secondary
#8DAA5C
accent
#D553A4
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4C2F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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