#74227B#74227B

#74227B is a dark, vivid purple. Relative luminance 0.063; OKLCH L 41.8% C 0.158 H 324.5°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#74227B
RGBrgb(116, 34, 123)
HSLhsl(295, 57%, 31%)
HSVhsv(295, 72%, 48%)
CMYKcmyk(5.7%, 72.4%, 0%, 51.8%)
CIE-LABlab(30.13, 47.39, -32.92)
CIE-LCHlch(30.13, 57.70, 325.22°)
OKLaboklab(41.82% 0.1286 -0.0916)
OKLCHoklch(41.82% 0.158 324.5)
XYZxyz(11.3493, 6.2878, 19.3509)
Luminance0.0629 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#74227B #297B22
analogous
#47227B #74227B #7B2255
triadic
#74227B #7B7422 #227B74
tetradic
#74227B #7B4722 #297B22 #22557B
square
#74227B #7B4722 #297B22 #22557B
split-complementary
#74227B #557B22 #227B47
monochromatic
#1A071B #47154B #74227B #A12FAB #C34ACD

Accessibility & contrast

On white

9.30
#74227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#74227B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #74227B
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##74227B#FFFFFF#000000##FFFFFF
##74227B1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09417E
Deuteranopia (green-blind)
#334A79
Tritanopia (blue-blind)
#76314C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #74227b;
/* rgb */ color: rgb(116, 34, 123);
/* oklch */ color: oklch(41.8% 0.158 324.5);
Tailwind
colors: {
  custom: {
    50: '#9f65a1',
    500: '#74227b',
    950: '#000000',
  },
}
SCSS
$custom: #74227b;
$custom-light: #9f65a1;
$custom-dark: #000000;
JSON
{
  "hex": "#74227b",
  "rgb": {
    "r": 116,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 295.281,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.41821,
    "c": 0.15786,
    "h": 324.5
  },
  "luminance": 0.06287
}

Semantic roles & 50–950 ramp

primary
#74227B
secondary
#53AE4B
accent
#E04854
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #74227B

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

Preview Lab → · Contrast checker → · Palette generator →

#74227B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva