#4F2C8B#4F2C8B

#4F2C8B is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.3% C 0.149 H 295.6°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#4F2C8B
RGBrgb(79, 44, 139)
HSLhsl(262, 52%, 36%)
HSVhsv(262, 68%, 55%)
CMYKcmyk(43.2%, 68.3%, 0%, 45.5%)
CIE-LABlab(27.65, 37.92, -47.19)
CIE-LCHlch(27.65, 60.54, 308.78°)
OKLaboklab(39.28% 0.0646 -0.1348)
OKLCHoklch(39.28% 0.149 295.6)
XYZxyz(8.7841, 5.3275, 24.9866)
Luminance0.0533 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F2C8B #688B2C
analogous
#2C388B #4F2C8B #7E2C8B
triadic
#4F2C8B #8B4F2C #2C8B4F
tetradic
#4F2C8B #8B2C38 #688B2C #2C8B7E
square
#4F2C8B #8B2C38 #688B2C #2C8B7E
split-complementary
#4F2C8B #8B7E2C #388B2C
monochromatic
#1A0F2E #351D5D #4F2C8B #693BB9 #8B64CE

Accessibility & contrast

On white

10.17
#4F2C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F2C8B
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F2C8B#FFFFFF#000000##FFFFFF
##4F2C8B1.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#3F4357
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f2c8b;
/* rgb */ color: rgb(79, 44, 139);
/* oklch */ color: oklch(39.3% 0.149 295.6);
Tailwind
colors: {
  custom: {
    50: '#8668ae',
    500: '#4f2c8b',
    950: '#000000',
  },
}
SCSS
$custom: #4f2c8b;
$custom-light: #8668ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f2c8b",
  "rgb": {
    "r": 79,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 262.105,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39281,
    "c": 0.14948,
    "h": 295.6
  },
  "luminance": 0.05328
}

Semantic roles & 50–950 ramp

primary
#4F2C8B
secondary
#95B45F
accent
#DB4CA7
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4F2C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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