#45229C#45229C

#45229C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.181 H 287.6°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#45229C
RGBrgb(69, 34, 156)
HSLhsl(257, 64%, 37%)
HSVhsv(257, 78%, 61%)
CMYKcmyk(55.8%, 78.2%, 0%, 38.8%)
CIE-LABlab(26.18, 46.28, -60.10)
CIE-LCHlch(26.18, 75.86, 307.60°)
OKLaboklab(38.45% 0.0549 -0.1729)
OKLCHoklch(38.45% 0.181 287.6)
XYZxyz(9.0252, 4.8091, 31.8987)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45229C #799C22
analogous
#223C9C #45229C #82229C
triadic
#45229C #9C4522 #229C45
tetradic
#45229C #9C223C #799C22 #229C82
square
#45229C #9C223C #799C22 #229C82
split-complementary
#45229C #9C8222 #3C9C22
monochromatic
#190C38 #2F176A #45229C #5B2DCE #815DDC

Accessibility & contrast

On white

10.70
#45229C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#45229C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45229C
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45229C#FFFFFF#000000##FFFFFF
##45229C1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419F
Deuteranopia (green-blind)
#003B9A
Tritanopia (blue-blind)
#1F455E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #45229c;
/* rgb */ color: rgb(69, 34, 156);
/* oklch */ color: oklch(38.5% 0.181 287.6);
Tailwind
colors: {
  custom: {
    50: '#8362ba',
    500: '#45229c',
    950: '#000000',
  },
}
SCSS
$custom: #45229c;
$custom-light: #8362ba;
$custom-dark: #000000;
JSON
{
  "hex": "#45229c",
  "rgb": {
    "r": 69,
    "g": 34,
    "b": 156
  },
  "hsl": {
    "h": 257.213,
    "s": 64.211,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3845,
    "c": 0.18145,
    "h": 287.6
  },
  "luminance": 0.0481
}

Semantic roles & 50–950 ramp

primary
#45229C
secondary
#A3C05A
accent
#E741B7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #45229C

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

Preview Lab → · Contrast checker → · Palette generator →

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