#45137F#45137F

#45137F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.163 H 297.6°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#45137F
RGBrgb(69, 19, 127)
HSLhsl(268, 74%, 29%)
HSVhsv(268, 85%, 50%)
CMYKcmyk(45.7%, 85%, 0%, 50.2%)
CIE-LABlab(21.07, 44.87, -50.46)
CIE-LCHlch(21.07, 67.52, 311.64°)
OKLaboklab(34.03% 0.0754 -0.1446)
OKLCHoklch(34.03% 0.163 297.6)
XYZxyz(6.5169, 3.2631, 20.3611)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45137F #4D7F13
analogous
#13177F #45137F #7B137F
triadic
#45137F #7F4513 #137F45
tetradic
#45137F #7F1317 #4D7F13 #137F7B
square
#45137F #7F1317 #4D7F13 #137F7B
split-complementary
#45137F #7F7B13 #177F13
monochromatic
#0E041B #280B4A #45137F #621BB4 #802DE0

Accessibility & contrast

On white

12.71
#45137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#45137F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45137F
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45137F#FFFFFF#000000##FFFFFF
##45137F1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#36334A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #45137f;
/* rgb */ color: rgb(69, 19, 127);
/* oklch */ color: oklch(34.0% 0.163 297.6);
Tailwind
colors: {
  custom: {
    50: '#8059a5',
    500: '#45137f',
    950: '#000000',
  },
}
SCSS
$custom: #45137f;
$custom-light: #8059a5;
$custom-dark: #000000;
JSON
{
  "hex": "#45137f",
  "rgb": {
    "r": 69,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 267.778,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34026,
    "c": 0.16306,
    "h": 297.6
  },
  "luminance": 0.03263
}

Semantic roles & 50–950 ramp

primary
#45137F
secondary
#7BB439
accent
#F1379B
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45137F

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

Preview Lab → · Contrast checker → · Palette generator →

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