#4F2B8E#4F2B8E

#4F2B8E is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.4% C 0.155 H 295.0°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#4F2B8E
RGBrgb(79, 43, 142)
HSLhsl(262, 54%, 36%)
HSVhsv(262, 70%, 56%)
CMYKcmyk(44.4%, 69.7%, 0%, 44.3%)
CIE-LABlab(27.69, 39.32, -48.98)
CIE-LCHlch(27.69, 62.81, 308.76°)
OKLaboklab(39.39% 0.0653 -0.14)
OKLCHoklch(39.39% 0.155 295)
XYZxyz(8.9695, 5.3428, 26.1446)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2B8E #6A8E2B
analogous
#2B398E #4F2B8E #812B8E
triadic
#4F2B8E #8E4F2B #2B8E4F
tetradic
#4F2B8E #8E2B39 #6A8E2B #2B8E81
square
#4F2B8E #8E2B39 #6A8E2B #2B8E81
split-complementary
#4F2B8E #8E812B #398E2B
monochromatic
#1B0F30 #351D5F #4F2B8E #6939BD #8B63D0

Accessibility & contrast

On white

10.15
#4F2B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#4F2B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F2B8E
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2B8E#FFFFFF#000000##FFFFFF
##4F2B8E1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#3E4359
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f2b8e;
/* rgb */ color: rgb(79, 43, 142);
/* oklch */ color: oklch(39.4% 0.155 295.0);
Tailwind
colors: {
  custom: {
    50: '#8667b0',
    500: '#4f2b8e',
    950: '#000000',
  },
}
SCSS
$custom: #4f2b8e;
$custom-light: #8667b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2b8e",
  "rgb": {
    "r": 79,
    "g": 43,
    "b": 142
  },
  "hsl": {
    "h": 261.818,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39387,
    "c": 0.15451,
    "h": 295
  },
  "luminance": 0.05343
}

Semantic roles & 50–950 ramp

primary
#4F2B8E
secondary
#96B65F
accent
#DD4BA8
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #4F2B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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