#4F2A8F#4F2A8F

#4F2A8F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.3% C 0.157 H 294.9°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#4F2A8F
RGBrgb(79, 42, 143)
HSLhsl(262, 55%, 36%)
HSVhsv(262, 71%, 56%)
CMYKcmyk(44.8%, 70.6%, 0%, 43.9%)
CIE-LABlab(27.58, 40.15, -49.79)
CIE-LCHlch(27.58, 63.96, 308.88°)
OKLaboklab(39.33% 0.0662 -0.1424)
OKLCHoklch(39.33% 0.157 294.9)
XYZxyz(9.0090, 5.3011, 26.5298)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2A8F #6A8F2A
analogous
#2A388F #4F2A8F #822A8F
triadic
#4F2A8F #8F4F2A #2A8F4F
tetradic
#4F2A8F #8F2A38 #6A8F2A #2A8F82
square
#4F2A8F #8F2A38 #6A8F2A #2A8F82
split-complementary
#4F2A8F #8F822A #388F2A
monochromatic
#1B0E30 #351C60 #4F2A8F #6938BE #8B62D1

Accessibility & contrast

On white

10.19
#4F2A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#4F2A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2A8F
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2A8F#FFFFFF#000000##FFFFFF
##4F2A8F1.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#3D4359
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f2a8f;
/* rgb */ color: rgb(79, 42, 143);
/* oklch */ color: oklch(39.3% 0.157 294.9);
Tailwind
colors: {
  custom: {
    50: '#8666b1',
    500: '#4f2a8f',
    950: '#000000',
  },
}
SCSS
$custom: #4f2a8f;
$custom-light: #8666b1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2a8f",
  "rgb": {
    "r": 79,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 261.98,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39332,
    "c": 0.15703,
    "h": 294.9
  },
  "luminance": 0.05301
}

Semantic roles & 50–950 ramp

primary
#4F2A8F
secondary
#96B75E
accent
#DE4AA8
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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