#4F226D#4F226D

#4F226D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.128 H 308.9°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#4F226D
RGBrgb(79, 34, 109)
HSLhsl(276, 52%, 28%)
HSVhsv(276, 69%, 43%)
CMYKcmyk(27.5%, 68.8%, 0%, 57.3%)
CIE-LABlab(23.37, 35.34, -35.12)
CIE-LCHlch(23.37, 49.82, 315.18°)
OKLaboklab(35.48% 0.08 -0.0993)
OKLCHoklch(35.48% 0.128 308.9)
XYZxyz(6.5562, 3.9106, 14.8745)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F226D #406D22
analogous
#29226D #4F226D #6D2265
triadic
#4F226D #6D4F22 #226D4F
tetradic
#4F226D #6D2922 #406D22 #22656D
square
#4F226D #6D2922 #406D22 #22656D
split-complementary
#4F226D #656D22 #226D29
monochromatic
#110717 #2D133E #4F226D #71319C #9245C5

Accessibility & contrast

On white

11.78
#4F226D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#4F226D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F226D
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F226D#FFFFFF#000000##FFFFFF
##4F226D1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366F
Deuteranopia (green-blind)
#15386B
Tritanopia (blue-blind)
#4B3244
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4f226d;
/* rgb */ color: rgb(79, 34, 109);
/* oklch */ color: oklch(35.5% 0.128 308.9);
Tailwind
colors: {
  custom: {
    50: '#836097',
    500: '#4f226d',
    950: '#000000',
  },
}
SCSS
$custom: #4f226d;
$custom-light: #836097;
$custom-dark: #000000;
JSON
{
  "hex": "#4f226d",
  "rgb": {
    "r": 79,
    "g": 34,
    "b": 109
  },
  "hsl": {
    "h": 276,
    "s": 52.448,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35483,
    "c": 0.1275,
    "h": 308.9
  },
  "luminance": 0.0391
}

Semantic roles & 50–950 ramp

primary
#4F226D
secondary
#6DA14A
accent
#DC4C86
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4F226D

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

Preview Lab → · Contrast checker → · Palette generator →

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