#45338C#45338C

#45338C is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.4% C 0.141 H 287.4°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#45338C
RGBrgb(69, 51, 140)
HSLhsl(252, 47%, 37%)
HSVhsv(252, 64%, 55%)
CMYKcmyk(50.7%, 63.6%, 0%, 45.1%)
CIE-LABlab(28.18, 32.01, -46.99)
CIE-LCHlch(28.18, 56.86, 304.26°)
OKLaboklab(39.44% 0.0421 -0.1345)
OKLCHoklch(39.44% 0.141 287.4)
XYZxyz(8.3703, 5.5259, 25.4314)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45338C #7A8C33
analogous
#334D8C #45338C #72338C
triadic
#45338C #8C4533 #338C45
tetradic
#45338C #8C334D #7A8C33 #338C72
square
#45338C #8C334D #7A8C33 #338C72
split-complementary
#45338C #8C7233 #4D8C33
monochromatic
#191232 #2F235F #45338C #5B43B9 #816FCB

Accessibility & contrast

On white

9.98
#45338C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#45338C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45338C
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45338C#FFFFFF#000000##FFFFFF
##45338C1.009.982.119.98
#FFFFFF9.981.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#00408A
Tritanopia (blue-blind)
#2C485A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #45338c;
/* rgb */ color: rgb(69, 51, 140);
/* oklch */ color: oklch(39.4% 0.141 287.4);
Tailwind
colors: {
  custom: {
    50: '#7f6bae',
    500: '#45338c',
    950: '#000000',
  },
}
SCSS
$custom: #45338c;
$custom-light: #7f6bae;
$custom-dark: #000000;
JSON
{
  "hex": "#45338c",
  "rgb": {
    "r": 69,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 252.135,
    "s": 46.597,
    "l": 37.451
  },
  "oklch": {
    "l": 0.39441,
    "c": 0.14099,
    "h": 287.4
  },
  "luminance": 0.05526
}

Semantic roles & 50–950 ramp

primary
#45338C
secondary
#A3B268
accent
#D652BB
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #45338C

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

Preview Lab → · Contrast checker → · Palette generator →

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