#4F2BA5#4F2BA5

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

Color values

HEX#4F2BA5
RGBrgb(79, 43, 165)
HSLhsl(258, 59%, 41%)
HSVhsv(258, 74%, 65%)
CMYKcmyk(52.1%, 73.9%, 0%, 35.3%)
CIE-LABlab(29.68, 45.87, -59.79)
CIE-LCHlch(29.68, 75.36, 307.49°)
OKLaboklab(41.42% 0.0606 -0.1718)
OKLCHoklch(41.42% 0.182 289.4)
XYZxyz(10.8779, 6.1061, 36.1955)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2BA5 #81A52B
analogous
#2B44A5 #4F2BA5 #8C2BA5
triadic
#4F2BA5 #A54F2B #2BA54F
tetradic
#4F2BA5 #A52B44 #81A52B #2BA58C
square
#4F2BA5 #A52B44 #81A52B #2BA58C
split-complementary
#4F2BA5 #A58C2B #44A52B
monochromatic
#211244 #381E74 #4F2BA5 #6A40CD #9071DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4F2BA5#FFFFFF#000000##FFFFFF
##4F2BA51.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)
#0048A9
Deuteranopia (green-blind)
#0043A3
Tritanopia (blue-blind)
#304C65
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f2ba5;
/* rgb */ color: rgb(79, 43, 165);
/* oklch */ color: oklch(41.4% 0.182 289.4);
Tailwind
colors: {
  custom: {
    50: '#8968c1',
    500: '#4f2ba5',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ba5;
$custom-light: #8968c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ba5",
  "rgb": {
    "r": 79,
    "g": 43,
    "b": 165
  },
  "hsl": {
    "h": 257.705,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41417,
    "c": 0.18216,
    "h": 289.4
  },
  "luminance": 0.06107
}

Semantic roles & 50–950 ramp

primary
#4F2BA5
secondary
#A8C16B
accent
#E246B4
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #4F2BA5

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

Preview Lab → · Contrast checker → · Palette generator →

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