#4F2CA2#4F2CA2

#4F2CA2 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.3% C 0.177 H 289.9°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#4F2CA2
RGBrgb(79, 44, 162)
HSLhsl(258, 57%, 40%)
HSVhsv(258, 73%, 64%)
CMYKcmyk(51.2%, 72.8%, 0%, 36.5%)
CIE-LABlab(29.59, 44.49, -58.12)
CIE-LCHlch(29.59, 73.19, 307.44°)
OKLaboklab(41.27% 0.0605 -0.1669)
OKLCHoklch(41.27% 0.177 289.9)
XYZxyz(10.6448, 6.0718, 34.7865)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2CA2 #7FA22C
analogous
#2C44A2 #4F2CA2 #8A2CA2
triadic
#4F2CA2 #A24F2C #2CA24F
tetradic
#4F2CA2 #A22C44 #7FA22C #2CA28A
square
#4F2CA2 #A22C44 #7FA22C #2CA28A
split-complementary
#4F2CA2 #A28A2C #44A22C
monochromatic
#201242 #381F72 #4F2CA2 #6940CB #8F70D8

Accessibility & contrast

On white

9.48
#4F2CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4F2CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2CA2
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2CA2#FFFFFF#000000##FFFFFF
##4F2CA21.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#324B64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f2ca2;
/* rgb */ color: rgb(79, 44, 162);
/* oklch */ color: oklch(41.3% 0.177 289.9);
Tailwind
colors: {
  custom: {
    50: '#8968bf',
    500: '#4f2ca2',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ca2;
$custom-light: #8968bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ca2",
  "rgb": {
    "r": 79,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 257.797,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41273,
    "c": 0.17748,
    "h": 289.9
  },
  "luminance": 0.06072
}

Semantic roles & 50–950 ramp

primary
#4F2CA2
secondary
#A6BF6A
accent
#E147B3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F2CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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