#45176B#45176B

#45176B is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.137 H 304.6°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#45176B
RGBrgb(69, 23, 107)
HSLhsl(273, 65%, 25%)
HSVhsv(273, 79%, 42%)
CMYKcmyk(35.5%, 78.5%, 0%, 58%)
CIE-LABlab(19.80, 38.07, -39.67)
CIE-LCHlch(19.80, 54.98, 313.82°)
OKLaboklab(32.57% 0.0781 -0.1129)
OKLCHoklch(32.57% 0.137 304.6)
XYZxyz(5.4139, 2.9396, 14.1892)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45176B #3D6B17
analogous
#1B176B #45176B #6B1767
triadic
#45176B #6B4517 #176B45
tetradic
#45176B #6B1B17 #3D6B17 #17676B
square
#45176B #6B1B17 #3D6B17 #17676B
split-complementary
#45176B #676B17 #176B1B
monochromatic
#100519 #250C39 #45176B #65229D #862DD0

Accessibility & contrast

On white

13.22
#45176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#45176B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45176B
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45176B#FFFFFF#000000##FFFFFF
##45176B1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#003069
Tritanopia (blue-blind)
#3E2C40
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #45176b;
/* rgb */ color: rgb(69, 23, 107);
/* oklch */ color: oklch(32.6% 0.137 304.6);
Tailwind
colors: {
  custom: {
    50: '#7d5996',
    500: '#45176b',
    950: '#000000',
  },
}
SCSS
$custom: #45176b;
$custom-light: #7d5996;
$custom-dark: #000000;
JSON
{
  "hex": "#45176b",
  "rgb": {
    "r": 69,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 272.857,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.32573,
    "c": 0.1373,
    "h": 304.6
  },
  "luminance": 0.0294
}

Semantic roles & 50–950 ramp

primary
#45176B
secondary
#6AA13D
accent
#E8408C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040D
muted
#7C797E

Preview Lab

Preview with #45176B

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

Preview Lab → · Contrast checker → · Palette generator →

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