#45176F#45176F

#45176F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.142 H 303.0°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#45176F
RGBrgb(69, 23, 111)
HSLhsl(271, 66%, 26%)
HSVhsv(271, 79%, 44%)
CMYKcmyk(37.8%, 79.3%, 0%, 56.5%)
CIE-LABlab(20.15, 39.09, -41.71)
CIE-LCHlch(20.15, 57.17, 313.15°)
OKLaboklab(32.92% 0.0771 -0.1189)
OKLCHoklch(32.92% 0.142 303)
XYZxyz(5.6292, 3.0257, 15.3233)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45176F #416F17
analogous
#19176F #45176F #6F176D
triadic
#45176F #6F4517 #176F45
tetradic
#45176F #6F1917 #416F17 #176D6F
square
#45176F #6F1917 #416F17 #176D6F
split-complementary
#45176F #6D6F17 #176F19
monochromatic
#100519 #250C3C #45176F #6522A2 #842DD3

Accessibility & contrast

On white

13.08
#45176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#45176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45176F
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45176F#FFFFFF#000000##FFFFFF
##45176F1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#00306D
Tritanopia (blue-blind)
#3C2D42
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #45176f;
/* rgb */ color: rgb(69, 23, 111);
/* oklch */ color: oklch(32.9% 0.142 303.0);
Tailwind
colors: {
  custom: {
    50: '#7d5999',
    500: '#45176f',
    950: '#000000',
  },
}
SCSS
$custom: #45176f;
$custom-light: #7d5999;
$custom-dark: #000000;
JSON
{
  "hex": "#45176f",
  "rgb": {
    "r": 69,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 271.364,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32925,
    "c": 0.14173,
    "h": 303
  },
  "luminance": 0.03026
}

Semantic roles & 50–950 ramp

primary
#45176F
secondary
#6FA53D
accent
#E93F90
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #45176F

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

Preview Lab → · Contrast checker → · Palette generator →

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