#45226C#45226C

#45226C is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.1% C 0.124 H 301.9°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#45226C
RGBrgb(69, 34, 108)
HSLhsl(268, 52%, 28%)
HSVhsv(268, 69%, 42%)
CMYKcmyk(36.1%, 68.5%, 0%, 57.6%)
CIE-LABlab(21.92, 32.65, -36.89)
CIE-LCHlch(21.92, 49.27, 311.51°)
OKLaboklab(34.11% 0.0653 -0.1048)
OKLCHoklch(34.11% 0.124 301.9)
XYZxyz(5.7324, 3.4920, 14.5565)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45226C #496C22
analogous
#22246C #45226C #6A226C
triadic
#45226C #6C4522 #226C45
tetradic
#45226C #6C2224 #496C22 #226C6A
square
#45226C #6C2224 #496C22 #226C6A
split-complementary
#45226C #6C6A22 #246C22
monochromatic
#0F0717 #27133D #45226C #63319B #8144C4

Accessibility & contrast

On white

12.36
#45226C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#45226C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45226C
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45226C#FFFFFF#000000##FFFFFF
##45226C1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346E
Deuteranopia (green-blind)
#05346A
Tritanopia (blue-blind)
#3D3243
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #45226c;
/* rgb */ color: rgb(69, 34, 108);
/* oklch */ color: oklch(34.1% 0.124 301.9);
Tailwind
colors: {
  custom: {
    50: '#7c5f97',
    500: '#45226c',
    950: '#000000',
  },
}
SCSS
$custom: #45226c;
$custom-light: #7c5f97;
$custom-dark: #000000;
JSON
{
  "hex": "#45226c",
  "rgb": {
    "r": 69,
    "g": 34,
    "b": 108
  },
  "hsl": {
    "h": 268.378,
    "s": 52.113,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34107,
    "c": 0.12353,
    "h": 301.9
  },
  "luminance": 0.03492
}

Semantic roles & 50–950 ramp

primary
#45226C
secondary
#77A04A
accent
#DC4C98
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050D
muted
#7C797E

Preview Lab

Preview with #45226C

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

Preview Lab → · Contrast checker → · Palette generator →

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