#45216F#45216F

#45216F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.2% C 0.129 H 301.0°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#45216F
RGBrgb(69, 33, 111)
HSLhsl(268, 54%, 28%)
HSVhsv(268, 70%, 44%)
CMYKcmyk(37.8%, 70.3%, 0%, 56.5%)
CIE-LABlab(21.95, 34.04, -38.78)
CIE-LCHlch(21.95, 51.60, 311.27°)
OKLaboklab(34.2% 0.0662 -0.1104)
OKLCHoklch(34.2% 0.129 301)
XYZxyz(5.8666, 3.5006, 15.4024)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45216F #4B6F21
analogous
#21246F #45216F #6C216F
triadic
#45216F #6F4521 #216F45
tetradic
#45216F #6F2124 #4B6F21 #216F6C
square
#45216F #6F2124 #4B6F21 #216F6C
split-complementary
#45216F #6F6C21 #246F21
monochromatic
#0F0718 #281340 #45216F #622F9E #8043C7

Accessibility & contrast

On white

12.35
#45216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#45216F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45216F
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45216F#FFFFFF#000000##FFFFFF
##45216F1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #45216f;
/* rgb */ color: rgb(69, 33, 111);
/* oklch */ color: oklch(34.2% 0.129 301.0);
Tailwind
colors: {
  custom: {
    50: '#7d5f99',
    500: '#45216f',
    950: '#000000',
  },
}
SCSS
$custom: #45216f;
$custom-light: #7d5f99;
$custom-dark: #000000;
JSON
{
  "hex": "#45216f",
  "rgb": {
    "r": 69,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 267.692,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34203,
    "c": 0.12872,
    "h": 301
  },
  "luminance": 0.03501
}

Semantic roles & 50–950 ramp

primary
#45216F
secondary
#79A349
accent
#DE4A9A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #45216F

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

Preview Lab → · Contrast checker → · Palette generator →

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