#45227C#45227C

#45227C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.4% C 0.143 H 296.0°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#45227C
RGBrgb(69, 34, 124)
HSLhsl(263, 57%, 31%)
HSVhsv(263, 73%, 49%)
CMYKcmyk(44.4%, 72.6%, 0%, 51.4%)
CIE-LABlab(23.22, 37.13, -45.04)
CIE-LCHlch(23.22, 58.37, 309.50°)
OKLaboklab(35.45% 0.0629 -0.1288)
OKLCHoklch(35.45% 0.143 296)
XYZxyz(6.6634, 3.8644, 19.4597)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45227C #597C22
analogous
#222C7C #45227C #72227C
triadic
#45227C #7C4522 #227C45
tetradic
#45227C #7C222C #597C22 #227C72
square
#45227C #7C222C #597C22 #227C72
split-complementary
#45227C #7C7222 #2C7C22
monochromatic
#10081C #2A154C #45227C #602FAC #7E4BCE

Accessibility & contrast

On white

11.85
#45227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#45227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45227C
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45227C#FFFFFF#000000##FFFFFF
##45227C1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#36384C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #45227c;
/* rgb */ color: rgb(69, 34, 124);
/* oklch */ color: oklch(35.4% 0.143 296.0);
Tailwind
colors: {
  custom: {
    50: '#7e60a3',
    500: '#45227c',
    950: '#000000',
  },
}
SCSS
$custom: #45227c;
$custom-light: #7e60a3;
$custom-dark: #000000;
JSON
{
  "hex": "#45227c",
  "rgb": {
    "r": 69,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 263.333,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35449,
    "c": 0.14333,
    "h": 296
  },
  "luminance": 0.03864
}

Semantic roles & 50–950 ramp

primary
#45227C
secondary
#88AF4B
accent
#E048A5
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #45227C

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

Preview Lab → · Contrast checker → · Palette generator →

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