#45167F#45167F

#45167F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.160 H 297.2°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#45167F
RGBrgb(69, 22, 127)
HSLhsl(267, 70%, 29%)
HSVhsv(267, 83%, 50%)
CMYKcmyk(45.7%, 82.7%, 0%, 50.2%)
CIE-LABlab(21.47, 43.69, -49.79)
CIE-LCHlch(21.47, 66.24, 311.26°)
OKLaboklab(34.31% 0.0732 -0.1427)
OKLCHoklch(34.31% 0.16 297.2)
XYZxyz(6.5709, 3.3712, 20.3791)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45167F #507F16
analogous
#161C7F #45167F #7A167F
triadic
#45167F #7F4516 #167F45
tetradic
#45167F #7F161C #507F16 #167F7A
square
#45167F #7F161C #507F16 #167F7A
split-complementary
#45167F #7F7A16 #1C7F16
monochromatic
#0E051A #290D4B #45167F #611FB3 #7F34DC

Accessibility & contrast

On white

12.54
#45167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#45167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45167F
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45167F#FFFFFF#000000##FFFFFF
##45167F1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#35344B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #45167f;
/* rgb */ color: rgb(69, 22, 127);
/* oklch */ color: oklch(34.3% 0.160 297.2);
Tailwind
colors: {
  custom: {
    50: '#7f5aa5',
    500: '#45167f',
    950: '#000000',
  },
}
SCSS
$custom: #45167f;
$custom-light: #7f5aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#45167f",
  "rgb": {
    "r": 69,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 266.857,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34306,
    "c": 0.16035,
    "h": 297.2
  },
  "luminance": 0.03371
}

Semantic roles & 50–950 ramp

primary
#45167F
secondary
#7FB43D
accent
#ED3B9D
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45167F

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

Preview Lab → · Contrast checker → · Palette generator →

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