#4F2CA6#4F2CA6

#4F2CA6 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.182 H 289.1°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#4F2CA6
RGBrgb(79, 44, 166)
HSLhsl(257, 58%, 41%)
HSVhsv(257, 73%, 65%)
CMYKcmyk(52.4%, 73.5%, 0%, 34.9%)
CIE-LABlab(29.95, 45.64, -59.95)
CIE-LCHlch(29.95, 75.34, 307.28°)
OKLaboklab(41.64% 0.0595 -0.1722)
OKLCHoklch(41.64% 0.182 289.1)
XYZxyz(11.0061, 6.2163, 36.6889)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2CA6 #83A62C
analogous
#2C46A6 #4F2CA6 #8C2CA6
triadic
#4F2CA6 #A64F2C #2CA64F
tetradic
#4F2CA6 #A62C46 #83A62C #2CA68C
square
#4F2CA6 #A62C46 #83A62C #2CA68C
split-complementary
#4F2CA6 #A68C2C #46A62C
monochromatic
#211245 #381F76 #4F2CA6 #6A42CD #9073DA

Accessibility & contrast

On white

9.36
#4F2CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4F2CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2CA6
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2CA6#FFFFFF#000000##FFFFFF
##4F2CA61.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AA
Deuteranopia (green-blind)
#0043A4
Tritanopia (blue-blind)
#2F4D66
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f2ca6;
/* rgb */ color: rgb(79, 44, 166);
/* oklch */ color: oklch(41.6% 0.182 289.1);
Tailwind
colors: {
  custom: {
    50: '#8969c1',
    500: '#4f2ca6',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ca6;
$custom-light: #8969c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ca6",
  "rgb": {
    "r": 79,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 257.213,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41638,
    "c": 0.18224,
    "h": 289.1
  },
  "luminance": 0.06217
}

Semantic roles & 50–950 ramp

primary
#4F2CA6
secondary
#A9C16D
accent
#E146B5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4F2CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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