#45165E#45165E

#45165E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.124 H 311.1°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#45165E
RGBrgb(69, 22, 94)
HSLhsl(279, 62%, 23%)
HSVhsv(279, 77%, 37%)
CMYKcmyk(26.6%, 76.6%, 0%, 63.1%)
CIE-LABlab(18.57, 35.30, -33.11)
CIE-LCHlch(18.57, 48.40, 316.83°)
OKLaboklab(31.37% 0.0817 -0.0936)
OKLCHoklch(31.37% 0.124 311.1)
XYZxyz(4.7612, 2.6473, 10.8477)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45165E #2F5E16
analogous
#21165E #45165E #5E1653
triadic
#45165E #5E4516 #165E45
tetradic
#45165E #5E2116 #2F5E16 #16535E
square
#45165E #5E2116 #2F5E16 #16535E
split-complementary
#45165E #535E16 #165E21
monochromatic
#120619 #210A2C #45165E #692290 #8E2DC1

Accessibility & contrast

On white

13.73
#45165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#45165E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45165E
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45165E#FFFFFF#000000##FFFFFF
##45165E1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B60
Deuteranopia (green-blind)
#0B2E5C
Tritanopia (blue-blind)
#422638
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #45165e;
/* rgb */ color: rgb(69, 22, 94);
/* oklch */ color: oklch(31.4% 0.124 311.1);
Tailwind
colors: {
  custom: {
    50: '#7c588c',
    500: '#45165e',
    950: '#000000',
  },
}
SCSS
$custom: #45165e;
$custom-light: #7c588c;
$custom-dark: #000000;
JSON
{
  "hex": "#45165e",
  "rgb": {
    "r": 69,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 279.167,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.31368,
    "c": 0.12425,
    "h": 311.1
  },
  "luminance": 0.02647
}

Semantic roles & 50–950 ramp

primary
#45165E
secondary
#5A953B
accent
#E5437B
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #45165E

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

Preview Lab → · Contrast checker → · Palette generator →

#45165E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva