#45286C#45286C

#45286C is a dark, moderate violet. Relative luminance 0.039; OKLCH L 35.1% C 0.114 H 300.2°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#45286C
RGBrgb(69, 40, 108)
HSLhsl(266, 46%, 29%)
HSVhsv(266, 63%, 42%)
CMYKcmyk(36.1%, 63%, 0%, 57.6%)
CIE-LABlab(23.22, 29.13, -34.79)
CIE-LCHlch(23.22, 45.37, 309.94°)
OKLaboklab(35.05% 0.0575 -0.0987)
OKLCHoklch(35.05% 0.114 300.2)
XYZxyz(5.9192, 3.8655, 14.6187)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45286C #4F6C28
analogous
#282D6C #45286C #67286C
triadic
#45286C #6C4528 #286C45
tetradic
#45286C #6C282D #4F6C28 #286C67
square
#45286C #6C282D #4F6C28 #286C67
split-complementary
#45286C #6C6728 #2D6C28
monochromatic
#0E0816 #28173F #45286C #623999 #7F50BE

Accessibility & contrast

On white

11.84
#45286C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#45286C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45286C
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45286C#FFFFFF#000000##FFFFFF
##45286C1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02376E
Deuteranopia (green-blind)
#12376A
Tritanopia (blue-blind)
#3D3646
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #45286c;
/* rgb */ color: rgb(69, 40, 108);
/* oklch */ color: oklch(35.1% 0.114 300.2);
Tailwind
colors: {
  custom: {
    50: '#7c6397',
    500: '#45286c',
    950: '#000000',
  },
}
SCSS
$custom: #45286c;
$custom-light: #7c6397;
$custom-dark: #000000;
JSON
{
  "hex": "#45286c",
  "rgb": {
    "r": 69,
    "g": 40,
    "b": 108
  },
  "hsl": {
    "h": 265.588,
    "s": 45.946,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35054,
    "c": 0.1142,
    "h": 300.2
  },
  "luminance": 0.03866
}

Semantic roles & 50–950 ramp

primary
#45286C
secondary
#7E9E51
accent
#D6529E
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#0A050D
muted
#7C7A7E

Preview Lab

Preview with #45286C

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

Preview Lab → · Contrast checker → · Palette generator →

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