#45176C#45176C

#45176C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.138 H 304.2°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#45176C
RGBrgb(69, 23, 108)
HSLhsl(272, 65%, 26%)
HSVhsv(272, 79%, 42%)
CMYKcmyk(36.1%, 78.7%, 0%, 57.6%)
CIE-LABlab(19.89, 38.32, -40.19)
CIE-LCHlch(19.89, 55.53, 313.64°)
OKLaboklab(32.66% 0.0778 -0.1144)
OKLCHoklch(32.66% 0.138 304.2)
XYZxyz(5.4668, 2.9607, 14.4679)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45176C #3E6C17
analogous
#1B176C #45176C #6C1768
triadic
#45176C #6C4517 #176C45
tetradic
#45176C #6C1B17 #3E6C17 #17686C
square
#45176C #6C1B17 #3E6C17 #17686C
split-complementary
#45176C #686C17 #176C1B
monochromatic
#100519 #250C3A #45176C #65229E #852CD1

Accessibility & contrast

On white

13.19
#45176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #45176C
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45176C#FFFFFF#000000##FFFFFF
##45176C1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6E
Deuteranopia (green-blind)
#00306A
Tritanopia (blue-blind)
#3D2C40
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #45176c;
/* rgb */ color: rgb(69, 23, 108);
/* oklch */ color: oklch(32.7% 0.138 304.2);
Tailwind
colors: {
  custom: {
    50: '#7d5997',
    500: '#45176c',
    950: '#000000',
  },
}
SCSS
$custom: #45176c;
$custom-light: #7d5997;
$custom-dark: #000000;
JSON
{
  "hex": "#45176c",
  "rgb": {
    "r": 69,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 272.471,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3266,
    "c": 0.13841,
    "h": 304.2
  },
  "luminance": 0.02961
}

Semantic roles & 50–950 ramp

primary
#45176C
secondary
#6BA23D
accent
#E8408D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040D
muted
#7C797E

Preview Lab

Preview with #45176C

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

Preview Lab → · Contrast checker → · Palette generator →

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