#4F2BA8#4F2BA8

#4F2BA8 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.7% C 0.186 H 288.8°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#4F2BA8
RGBrgb(79, 43, 168)
HSLhsl(257, 59%, 41%)
HSVhsv(257, 74%, 66%)
CMYKcmyk(53%, 74.4%, 0%, 34.1%)
CIE-LABlab(29.95, 46.72, -61.15)
CIE-LCHlch(29.95, 76.96, 307.38°)
OKLaboklab(41.69% 0.0599 -0.1758)
OKLCHoklch(41.69% 0.186 288.8)
XYZxyz(11.1541, 6.2166, 37.6504)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2BA8 #84A82B
analogous
#2B46A8 #4F2BA8 #8E2BA8
triadic
#4F2BA8 #A84F2B #2BA84F
tetradic
#4F2BA8 #A82B46 #84A82B #2BA88E
square
#4F2BA8 #A82B46 #84A82B #2BA88E
split-complementary
#4F2BA8 #A88E2B #46A82B
monochromatic
#211247 #381F77 #4F2BA8 #6A42CF #9172DB

Accessibility & contrast

On white

9.36
#4F2BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F2BA8
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2BA8#FFFFFF#000000##FFFFFF
##4F2BA81.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AC
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#2D4D67
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #4f2ba8;
/* rgb */ color: rgb(79, 43, 168);
/* oklch */ color: oklch(41.7% 0.186 288.8);
Tailwind
colors: {
  custom: {
    50: '#8a68c3',
    500: '#4f2ba8',
    950: '#000000',
  },
}
SCSS
$custom: #4f2ba8;
$custom-light: #8a68c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2ba8",
  "rgb": {
    "r": 79,
    "g": 43,
    "b": 168
  },
  "hsl": {
    "h": 257.28,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41694,
    "c": 0.18569,
    "h": 288.8
  },
  "luminance": 0.06217
}

Semantic roles & 50–950 ramp

primary
#4F2BA8
secondary
#AAC26C
accent
#E245B5
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #4F2BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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