#45227D#45227D

#45227D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.145 H 295.7°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#45227D
RGBrgb(69, 34, 125)
HSLhsl(263, 57%, 31%)
HSVhsv(263, 73%, 49%)
CMYKcmyk(44.8%, 72.8%, 0%, 51%)
CIE-LABlab(23.30, 37.41, -45.53)
CIE-LCHlch(23.30, 58.93, 309.41°)
OKLaboklab(35.54% 0.0627 -0.1302)
OKLCHoklch(35.54% 0.145 295.7)
XYZxyz(6.7270, 3.8898, 19.7944)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45227D #5A7D22
analogous
#222C7D #45227D #72227D
triadic
#45227D #7D4522 #227D45
tetradic
#45227D #7D222C #5A7D22 #227D72
square
#45227D #7D222C #5A7D22 #227D72
split-complementary
#45227D #7D7222 #2C7D22
monochromatic
#10081D #2A154D #45227D #602FAD #7E4BCE

Accessibility & contrast

On white

11.81
#45227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#45227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45227D
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45227D#FFFFFF#000000##FFFFFF
##45227D1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#36394D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #45227d;
/* rgb */ color: rgb(69, 34, 125);
/* oklch */ color: oklch(35.5% 0.145 295.7);
Tailwind
colors: {
  custom: {
    50: '#7e60a3',
    500: '#45227d',
    950: '#000000',
  },
}
SCSS
$custom: #45227d;
$custom-light: #7e60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#45227d",
  "rgb": {
    "r": 69,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 263.077,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35537,
    "c": 0.14456,
    "h": 295.7
  },
  "luminance": 0.0389
}

Semantic roles & 50–950 ramp

primary
#45227D
secondary
#89B04B
accent
#E047A6
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #45227D

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

Preview Lab → · Contrast checker → · Palette generator →

#45227D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva