#45227A#45227A

#45227A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.141 H 296.7°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#45227A
RGBrgb(69, 34, 122)
HSLhsl(264, 56%, 31%)
HSVhsv(264, 72%, 48%)
CMYKcmyk(43.4%, 72.1%, 0%, 52.2%)
CIE-LABlab(23.05, 36.56, -44.05)
CIE-LCHlch(23.05, 57.24, 309.69°)
OKLaboklab(35.28% 0.0633 -0.1259)
OKLCHoklch(35.28% 0.141 296.7)
XYZxyz(6.5382, 3.8143, 18.8003)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45227A #577A22
analogous
#222B7A #45227A #71227A
triadic
#45227A #7A4522 #227A45
tetradic
#45227A #7A222B #577A22 #227A71
square
#45227A #7A222B #577A22 #227A71
split-complementary
#45227A #7A7122 #2B7A22
monochromatic
#0F071A #2A154A #45227A #602FAA #7E4ACD

Accessibility & contrast

On white

11.91
#45227A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#45227A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45227A
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45227A#FFFFFF#000000##FFFFFF
##45227A1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003678
Tritanopia (blue-blind)
#37384B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #45227a;
/* rgb */ color: rgb(69, 34, 122);
/* oklch */ color: oklch(35.3% 0.141 296.7);
Tailwind
colors: {
  custom: {
    50: '#7e60a1',
    500: '#45227a',
    950: '#000000',
  },
}
SCSS
$custom: #45227a;
$custom-light: #7e60a1;
$custom-dark: #000000;
JSON
{
  "hex": "#45227a",
  "rgb": {
    "r": 69,
    "g": 34,
    "b": 122
  },
  "hsl": {
    "h": 263.864,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.35275,
    "c": 0.14088,
    "h": 296.7
  },
  "luminance": 0.03814
}

Semantic roles & 50–950 ramp

primary
#45227A
secondary
#86AD4B
accent
#E048A3
background
#F8F5FA
surface
#EFEAF3
border
#CAC6CD
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #45227A

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

Preview Lab → · Contrast checker → · Palette generator →

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