#45167C#45167C

#45167C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.157 H 298.2°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#45167C
RGBrgb(69, 22, 124)
HSLhsl(268, 70%, 29%)
HSVhsv(268, 82%, 49%)
CMYKcmyk(44.4%, 82.3%, 0%, 51.4%)
CIE-LABlab(21.19, 42.90, -48.36)
CIE-LCHlch(21.19, 64.65, 311.58°)
OKLaboklab(34.02% 0.0742 -0.1384)
OKLCHoklch(34.02% 0.157 298.2)
XYZxyz(6.3783, 3.2942, 19.3647)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45167C #4D7C16
analogous
#161A7C #45167C #78167C
triadic
#45167C #7C4516 #167C45
tetradic
#45167C #7C161A #4D7C16 #167C78
square
#45167C #7C161A #4D7C16 #167C78
split-complementary
#45167C #7C7816 #1A7C16
monochromatic
#0E051A #280D48 #45167C #621FB0 #8032DB

Accessibility & contrast

On white

12.66
#45167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#45167C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45167C
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45167C#FFFFFF#000000##FFFFFF
##45167C1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#373349
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #45167c;
/* rgb */ color: rgb(69, 22, 124);
/* oklch */ color: oklch(34.0% 0.157 298.2);
Tailwind
colors: {
  custom: {
    50: '#7f5aa3',
    500: '#45167c',
    950: '#000000',
  },
}
SCSS
$custom: #45167c;
$custom-light: #7f5aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#45167c",
  "rgb": {
    "r": 69,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 267.647,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34018,
    "c": 0.15708,
    "h": 298.2
  },
  "luminance": 0.03294
}

Semantic roles & 50–950 ramp

primary
#45167C
secondary
#7BB13D
accent
#ED3B9B
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45167C

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

Preview Lab → · Contrast checker → · Palette generator →

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