#45226E#45226E

#45226E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.126 H 301.1°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#45226E
RGBrgb(69, 34, 110)
HSLhsl(268, 53%, 28%)
HSVhsv(268, 69%, 43%)
CMYKcmyk(37.3%, 69.1%, 0%, 56.9%)
CIE-LABlab(22.07, 33.20, -37.94)
CIE-LCHlch(22.07, 50.42, 311.19°)
OKLaboklab(34.27% 0.0651 -0.1079)
OKLCHoklch(34.27% 0.126 301.1)
XYZxyz(5.8401, 3.5350, 15.1235)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45226E #4B6E22
analogous
#22256E #45226E #6B226E
triadic
#45226E #6E4522 #226E45
tetradic
#45226E #6E2225 #4B6E22 #226E6B
square
#45226E #6E2225 #4B6E22 #226E6B
split-complementary
#45226E #6E6B22 #256E22
monochromatic
#0F0717 #28143F #45226E #62309D #8045C5

Accessibility & contrast

On white

12.30
#45226E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#45226E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45226E
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45226E#FFFFFF#000000##FFFFFF
##45226E1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#00346C
Tritanopia (blue-blind)
#3C3345
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #45226e;
/* rgb */ color: rgb(69, 34, 110);
/* oklch */ color: oklch(34.3% 0.126 301.1);
Tailwind
colors: {
  custom: {
    50: '#7c6098',
    500: '#45226e',
    950: '#000000',
  },
}
SCSS
$custom: #45226e;
$custom-light: #7c6098;
$custom-dark: #000000;
JSON
{
  "hex": "#45226e",
  "rgb": {
    "r": 69,
    "g": 34,
    "b": 110
  },
  "hsl": {
    "h": 267.632,
    "s": 52.778,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34268,
    "c": 0.12603,
    "h": 301.1
  },
  "luminance": 0.03535
}

Semantic roles & 50–950 ramp

primary
#45226E
secondary
#79A14A
accent
#DC4C9A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #45226E

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

Preview Lab → · Contrast checker → · Palette generator →

#45226E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva