#4F2CA3#4F2CA3

#4F2CA3 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.4% C 0.179 H 289.7°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#4F2CA3
RGBrgb(79, 44, 163)
HSLhsl(258, 57%, 41%)
HSVhsv(258, 73%, 64%)
CMYKcmyk(51.5%, 73%, 0%, 36.1%)
CIE-LABlab(29.68, 44.78, -58.58)
CIE-LCHlch(29.68, 73.73, 307.40°)
OKLaboklab(41.36% 0.0602 -0.1682)
OKLCHoklch(41.36% 0.179 289.7)
XYZxyz(10.7341, 6.1075, 35.2565)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2CA3 #80A32C
analogous
#2C44A3 #4F2CA3 #8A2CA3
triadic
#4F2CA3 #A34F2C #2CA34F
tetradic
#4F2CA3 #A32C44 #80A32C #2CA38A
square
#4F2CA3 #A32C44 #80A32C #2CA38A
split-complementary
#4F2CA3 #A38A2C #44A32C
monochromatic
#201243 #381F73 #4F2CA3 #6941CC #8F71D9

Accessibility & contrast

On white

9.45
#4F2CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#4F2CA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2CA3
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2CA3#FFFFFF#000000##FFFFFF
##4F2CA31.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A6
Deuteranopia (green-blind)
#0043A1
Tritanopia (blue-blind)
#314C65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f2ca3;
/* rgb */ color: rgb(79, 44, 163);
/* oklch */ color: oklch(41.4% 0.179 289.7);
Tailwind
colors: {
  custom: {
    50: '#8968bf',
    500: '#4f2ca3',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ca3;
$custom-light: #8968bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ca3",
  "rgb": {
    "r": 79,
    "g": 44,
    "b": 163
  },
  "hsl": {
    "h": 257.647,
    "s": 57.488,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41364,
    "c": 0.17868,
    "h": 289.7
  },
  "luminance": 0.06108
}

Semantic roles & 50–950 ramp

primary
#4F2CA3
secondary
#A7C06B
accent
#E147B4
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F2CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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