#45227B#45227B

#45227B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.142 H 296.4°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#45227B
RGBrgb(69, 34, 123)
HSLhsl(264, 57%, 31%)
HSVhsv(264, 72%, 48%)
CMYKcmyk(43.9%, 72.4%, 0%, 51.8%)
CIE-LABlab(23.13, 36.84, -44.54)
CIE-LCHlch(23.13, 57.81, 309.60°)
OKLaboklab(35.36% 0.0631 -0.1273)
OKLCHoklch(35.36% 0.142 296.4)
XYZxyz(6.6005, 3.8392, 19.1283)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45227B #587B22
analogous
#222B7B #45227B #71227B
triadic
#45227B #7B4522 #227B45
tetradic
#45227B #7B222B #587B22 #227B71
square
#45227B #7B222B #587B22 #227B71
split-complementary
#45227B #7B7122 #2B7B22
monochromatic
#0F071B #2A154B #45227B #602FAB #7E4ACD

Accessibility & contrast

On white

11.88
#45227B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #45227B
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45227B#FFFFFF#000000##FFFFFF
##45227B1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#37384C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #45227b;
/* rgb */ color: rgb(69, 34, 123);
/* oklch */ color: oklch(35.4% 0.142 296.4);
Tailwind
colors: {
  custom: {
    50: '#7e60a2',
    500: '#45227b',
    950: '#000000',
  },
}
SCSS
$custom: #45227b;
$custom-light: #7e60a2;
$custom-dark: #000000;
JSON
{
  "hex": "#45227b",
  "rgb": {
    "r": 69,
    "g": 34,
    "b": 123
  },
  "hsl": {
    "h": 263.596,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35362,
    "c": 0.14212,
    "h": 296.4
  },
  "luminance": 0.03839
}

Semantic roles & 50–950 ramp

primary
#45227B
secondary
#87AE4B
accent
#E048A4
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #45227B

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

Preview Lab → · Contrast checker → · Palette generator →

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