#45256C#45256C

#45256C is a dark, moderate violet. Relative luminance 0.037; OKLCH L 34.6% C 0.119 H 301.1°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#45256C
RGBrgb(69, 37, 108)
HSLhsl(267, 49%, 28%)
HSVhsv(267, 66%, 42%)
CMYKcmyk(36.1%, 65.7%, 0%, 57.6%)
CIE-LABlab(22.55, 30.92, -35.87)
CIE-LCHlch(22.55, 47.35, 310.77°)
OKLaboklab(34.57% 0.0615 -0.1018)
OKLCHoklch(34.57% 0.119 301.1)
XYZxyz(5.8219, 3.6710, 14.5863)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45256C #4C6C25
analogous
#25286C #45256C #68256C
triadic
#45256C #6C4525 #256C45
tetradic
#45256C #6C2528 #4C6C25 #256C68
square
#45256C #6C2528 #4C6C25 #256C68
split-complementary
#45256C #6C6825 #286C25
monochromatic
#0F0817 #28153E #45256C #62359A #804AC1

Accessibility & contrast

On white

12.11
#45256C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#45256C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45256C
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45256C#FFFFFF#000000##FFFFFF
##45256C1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356E
Deuteranopia (green-blind)
#0C356A
Tritanopia (blue-blind)
#3D3444
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #45256c;
/* rgb */ color: rgb(69, 37, 108);
/* oklch */ color: oklch(34.6% 0.119 301.1);
Tailwind
colors: {
  custom: {
    50: '#7c6197',
    500: '#45256c',
    950: '#000000',
  },
}
SCSS
$custom: #45256c;
$custom-light: #7c6197;
$custom-dark: #000000;
JSON
{
  "hex": "#45256c",
  "rgb": {
    "r": 69,
    "g": 37,
    "b": 108
  },
  "hsl": {
    "h": 267.042,
    "s": 48.966,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34567,
    "c": 0.11894,
    "h": 301.1
  },
  "luminance": 0.03671
}

Semantic roles & 50–950 ramp

primary
#45256C
secondary
#7A9F4E
accent
#D94F9B
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#0A050D
muted
#7C797E

Preview Lab

Preview with #45256C

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

Preview Lab → · Contrast checker → · Palette generator →

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