#4F2CA1#4F2CA1

#4F2CA1 is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.2% C 0.176 H 290.1°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#4F2CA1
RGBrgb(79, 44, 161)
HSLhsl(258, 57%, 40%)
HSVhsv(258, 73%, 63%)
CMYKcmyk(50.9%, 72.7%, 0%, 36.9%)
CIE-LABlab(29.50, 44.20, -57.66)
CIE-LCHlch(29.50, 72.65, 307.48°)
OKLaboklab(41.18% 0.0607 -0.1655)
OKLCHoklch(41.18% 0.176 290.1)
XYZxyz(10.5563, 6.0364, 34.3202)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2CA1 #7EA12C
analogous
#2C43A1 #4F2CA1 #8A2CA1
triadic
#4F2CA1 #A14F2C #2CA14F
tetradic
#4F2CA1 #A12C43 #7EA12C #2CA18A
square
#4F2CA1 #A12C43 #7EA12C #2CA18A
split-complementary
#4F2CA1 #A18A2C #43A12C
monochromatic
#201241 #371F71 #4F2CA1 #6940CB #8F70D8

Accessibility & contrast

On white

9.51
#4F2CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F2CA1
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2CA1#FFFFFF#000000##FFFFFF
##4F2CA11.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#00439F
Tritanopia (blue-blind)
#334B63
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4f2ca1;
/* rgb */ color: rgb(79, 44, 161);
/* oklch */ color: oklch(41.2% 0.176 290.1);
Tailwind
colors: {
  custom: {
    50: '#8968be',
    500: '#4f2ca1',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ca1;
$custom-light: #8968be;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ca1",
  "rgb": {
    "r": 79,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 257.949,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41183,
    "c": 0.17629,
    "h": 290.1
  },
  "luminance": 0.06037
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F2CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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