#4F2CA5#4F2CA5

#4F2CA5 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.181 H 289.3°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#4F2CA5
RGBrgb(79, 44, 165)
HSLhsl(257, 58%, 41%)
HSVhsv(257, 73%, 65%)
CMYKcmyk(52.1%, 73.3%, 0%, 35.3%)
CIE-LABlab(29.86, 45.35, -59.49)
CIE-LCHlch(29.86, 74.81, 307.32°)
OKLaboklab(41.55% 0.0598 -0.1709)
OKLCHoklch(41.55% 0.181 289.3)
XYZxyz(10.9147, 6.1798, 36.2077)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2CA5 #82A52C
analogous
#2C45A5 #4F2CA5 #8B2CA5
triadic
#4F2CA5 #A54F2C #2CA54F
tetradic
#4F2CA5 #A52C45 #82A52C #2CA58B
square
#4F2CA5 #A52C45 #82A52C #2CA58B
split-complementary
#4F2CA5 #A58B2C #45A52C
monochromatic
#211244 #381F75 #4F2CA5 #6A42CD #9072D9

Accessibility & contrast

On white

9.39
#4F2CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F2CA5
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2CA5#FFFFFF#000000##FFFFFF
##4F2CA51.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A9
Deuteranopia (green-blind)
#0043A3
Tritanopia (blue-blind)
#2F4C66
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f2ca5;
/* rgb */ color: rgb(79, 44, 165);
/* oklch */ color: oklch(41.5% 0.181 289.3);
Tailwind
colors: {
  custom: {
    50: '#8969c1',
    500: '#4f2ca5',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ca5;
$custom-light: #8969c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ca5",
  "rgb": {
    "r": 79,
    "g": 44,
    "b": 165
  },
  "hsl": {
    "h": 257.355,
    "s": 57.895,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41546,
    "c": 0.18105,
    "h": 289.3
  },
  "luminance": 0.0618
}

Semantic roles & 50–950 ramp

primary
#4F2CA5
secondary
#A8C16C
accent
#E147B4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4F2CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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