#45266C#45266C

#45266C is a dark, moderate violet. Relative luminance 0.037; OKLCH L 34.7% C 0.117 H 300.8°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#45266C
RGBrgb(69, 38, 108)
HSLhsl(267, 48%, 29%)
HSVhsv(267, 65%, 42%)
CMYKcmyk(36.1%, 64.8%, 0%, 57.6%)
CIE-LABlab(22.77, 30.33, -35.51)
CIE-LCHlch(22.77, 46.70, 310.50°)
OKLaboklab(34.73% 0.0602 -0.1008)
OKLCHoklch(34.73% 0.117 300.8)
XYZxyz(5.8535, 3.7341, 14.5968)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45266C #4D6C26
analogous
#262A6C #45266C #68266C
triadic
#45266C #6C4526 #266C45
tetradic
#45266C #6C262A #4D6C26 #266C68
square
#45266C #6C262A #4D6C26 #266C68
split-complementary
#45266C #6C6826 #2A6C26
monochromatic
#0E0817 #28163F #45266C #623699 #804CC0

Accessibility & contrast

On white

12.02
#45266C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#45266C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45266C
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45266C#FFFFFF#000000##FFFFFF
##45266C1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366E
Deuteranopia (green-blind)
#0E366A
Tritanopia (blue-blind)
#3D3545
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #45266c;
/* rgb */ color: rgb(69, 38, 108);
/* oklch */ color: oklch(34.7% 0.117 300.8);
Tailwind
colors: {
  custom: {
    50: '#7c6297',
    500: '#45266c',
    950: '#000000',
  },
}
SCSS
$custom: #45266c;
$custom-light: #7c6297;
$custom-dark: #000000;
JSON
{
  "hex": "#45266c",
  "rgb": {
    "r": 69,
    "g": 38,
    "b": 108
  },
  "hsl": {
    "h": 266.571,
    "s": 47.945,
    "l": 28.627
  },
  "oklch": {
    "l": 0.34727,
    "c": 0.11738,
    "h": 300.8
  },
  "luminance": 0.03734
}

Semantic roles & 50–950 ramp

primary
#45266C
secondary
#7B9F4F
accent
#D8509C
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#0A050D
muted
#7C797E

Preview Lab

Preview with #45266C

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

Preview Lab → · Contrast checker → · Palette generator →

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