#4B2279#4B2279

#4B2279 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.141 H 301.1°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#4B2279
RGBrgb(75, 34, 121)
HSLhsl(268, 56%, 30%)
HSVhsv(268, 72%, 47%)
CMYKcmyk(38%, 71.9%, 0%, 52.5%)
CIE-LABlab(23.74, 37.54, -42.25)
CIE-LCHlch(23.74, 56.52, 311.62°)
OKLaboklab(35.92% 0.0726 -0.1204)
OKLCHoklch(35.92% 0.141 301.1)
XYZxyz(6.9240, 4.0203, 18.4967)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B2279 #507922
analogous
#222479 #4B2279 #762279
triadic
#4B2279 #794B22 #22794B
tetradic
#4B2279 #792224 #507922 #227976
square
#4B2279 #792224 #507922 #227976
split-complementary
#4B2279 #797622 #247922
monochromatic
#100719 #2D1549 #4B2279 #692FA9 #8749CC

Accessibility & contrast

On white

11.64
#4B2279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4B2279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B2279
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B2279#FFFFFF#000000##FFFFFF
##4B22791.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#003877
Tritanopia (blue-blind)
#41374B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4b2279;
/* rgb */ color: rgb(75, 34, 121);
/* oklch */ color: oklch(35.9% 0.141 301.1);
Tailwind
colors: {
  custom: {
    50: '#8261a0',
    500: '#4b2279',
    950: '#000000',
  },
}
SCSS
$custom: #4b2279;
$custom-light: #8261a0;
$custom-dark: #000000;
JSON
{
  "hex": "#4b2279",
  "rgb": {
    "r": 75,
    "g": 34,
    "b": 121
  },
  "hsl": {
    "h": 268.276,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.35915,
    "c": 0.14058,
    "h": 301.1
  },
  "luminance": 0.0402
}

Semantic roles & 50–950 ramp

primary
#4B2279
secondary
#7EAC4B
accent
#DF4898
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050F
muted
#7C797E

Preview Lab

Preview with #4B2279

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

Preview Lab → · Contrast checker → · Palette generator →

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