#45256B#45256B

#45256B is a dark, moderate violet. Relative luminance 0.036; OKLCH L 34.5% C 0.118 H 301.5°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#45256B
RGBrgb(69, 37, 107)
HSLhsl(267, 49%, 28%)
HSVhsv(267, 65%, 42%)
CMYKcmyk(35.5%, 65.4%, 0%, 58%)
CIE-LABlab(22.48, 30.64, -35.34)
CIE-LCHlch(22.48, 46.77, 310.93°)
OKLaboklab(34.49% 0.0616 -0.1003)
OKLCHoklch(34.49% 0.118 301.5)
XYZxyz(5.7690, 3.6499, 14.3076)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45256B #4B6B25
analogous
#25286B #45256B #68256B
triadic
#45256B #6B4525 #256B45
tetradic
#45256B #6B2528 #4B6B25 #256B68
square
#45256B #6B2528 #4B6B25 #256B68
split-complementary
#45256B #6B6825 #286B25
monochromatic
#0F0817 #28153E #45256B #623598 #804AC0

Accessibility & contrast

On white

12.14
#45256B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #45256B
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45256B#FFFFFF#000000##FFFFFF
##45256B1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #45256b;
/* rgb */ color: rgb(69, 37, 107);
/* oklch */ color: oklch(34.5% 0.118 301.5);
Tailwind
colors: {
  custom: {
    50: '#7c6196',
    500: '#45256b',
    950: '#000000',
  },
}
SCSS
$custom: #45256b;
$custom-light: #7c6196;
$custom-dark: #000000;
JSON
{
  "hex": "#45256b",
  "rgb": {
    "r": 69,
    "g": 37,
    "b": 107
  },
  "hsl": {
    "h": 267.429,
    "s": 48.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3449,
    "c": 0.11765,
    "h": 301.5
  },
  "luminance": 0.0365
}

Semantic roles & 50–950 ramp

primary
#45256B
secondary
#799E4E
accent
#D8509A
background
#F7F5F9
surface
#EEEAF2
border
#C9C6CC
text
#0A050D
muted
#7C797E

Preview Lab

Preview with #45256B

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

Preview Lab → · Contrast checker → · Palette generator →

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