#45226F#45226F

#45226F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.3% C 0.127 H 300.7°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#45226F
RGBrgb(69, 34, 111)
HSLhsl(267, 53%, 28%)
HSVhsv(267, 69%, 44%)
CMYKcmyk(37.8%, 69.4%, 0%, 56.5%)
CIE-LABlab(22.15, 33.48, -38.46)
CIE-LCHlch(22.15, 50.99, 311.04°)
OKLaboklab(34.35% 0.065 -0.1094)
OKLCHoklch(34.35% 0.127 300.7)
XYZxyz(5.8948, 3.5569, 15.4118)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45226F #4C6F22
analogous
#22256F #45226F #6B226F
triadic
#45226F #6F4522 #226F45
tetradic
#45226F #6F2225 #4C6F22 #226F6B
square
#45226F #6F2225 #4C6F22 #226F6B
split-complementary
#45226F #6F6B22 #256F22
monochromatic
#0F0717 #281440 #45226F #62309E #8045C6

Accessibility & contrast

On white

12.27
#45226F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #45226F
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45226F#FFFFFF#000000##FFFFFF
##45226F1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #45226f;
/* rgb */ color: rgb(69, 34, 111);
/* oklch */ color: oklch(34.3% 0.127 300.7);
Tailwind
colors: {
  custom: {
    50: '#7c6099',
    500: '#45226f',
    950: '#000000',
  },
}
SCSS
$custom: #45226f;
$custom-light: #7c6099;
$custom-dark: #000000;
JSON
{
  "hex": "#45226f",
  "rgb": {
    "r": 69,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 267.273,
    "s": 53.103,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34349,
    "c": 0.12727,
    "h": 300.7
  },
  "luminance": 0.03557
}

Semantic roles & 50–950 ramp

primary
#45226F
secondary
#7AA24A
accent
#DD4B9A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #45226F

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

Preview Lab → · Contrast checker → · Palette generator →

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