#45236E#45236E

#45236E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.4% C 0.125 H 300.9°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#45236E
RGBrgb(69, 35, 110)
HSLhsl(267, 52%, 28%)
HSVhsv(267, 68%, 43%)
CMYKcmyk(37.3%, 68.2%, 0%, 56.9%)
CIE-LABlab(22.28, 32.64, -37.60)
CIE-LCHlch(22.28, 49.79, 310.96°)
OKLaboklab(34.42% 0.0639 -0.1069)
OKLCHoklch(34.42% 0.125 300.9)
XYZxyz(5.8691, 3.5930, 15.1331)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45236E #4C6E23
analogous
#23266E #45236E #6A236E
triadic
#45236E #6E4523 #236E45
tetradic
#45236E #6E2326 #4C6E23 #236E6A
square
#45236E #6E2326 #4C6E23 #236E6A
split-complementary
#45236E #6E6A23 #266E23
monochromatic
#0F0717 #281440 #45236E #62329C #8047C4

Accessibility & contrast

On white

12.22
#45236E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#45236E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45236E
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45236E#FFFFFF#000000##FFFFFF
##45236E1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003570
Deuteranopia (green-blind)
#03356C
Tritanopia (blue-blind)
#3C3445
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #45236e;
/* rgb */ color: rgb(69, 35, 110);
/* oklch */ color: oklch(34.4% 0.125 300.9);
Tailwind
colors: {
  custom: {
    50: '#7c6098',
    500: '#45236e',
    950: '#000000',
  },
}
SCSS
$custom: #45236e;
$custom-light: #7c6098;
$custom-dark: #000000;
JSON
{
  "hex": "#45236e",
  "rgb": {
    "r": 69,
    "g": 35,
    "b": 110
  },
  "hsl": {
    "h": 267.2,
    "s": 51.724,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34417,
    "c": 0.12454,
    "h": 300.9
  },
  "luminance": 0.03593
}

Semantic roles & 50–950 ramp

primary
#45236E
secondary
#7AA14C
accent
#DB4D9B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050E
muted
#7C797E

Preview Lab

Preview with #45236E

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

Preview Lab → · Contrast checker → · Palette generator →

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