#4A286F#4A286F

#4A286F is a dark, moderate violet. Relative luminance 0.041; OKLCH L 35.9% C 0.119 H 302.9°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#4A286F
RGBrgb(74, 40, 111)
HSLhsl(269, 47%, 30%)
HSVhsv(269, 64%, 44%)
CMYKcmyk(33.3%, 64%, 0%, 56.5%)
CIE-LABlab(24.07, 31.25, -35.33)
CIE-LCHlch(24.07, 47.17, 311.50°)
OKLaboklab(35.88% 0.0648 -0.1001)
OKLCHoklch(35.88% 0.119 302.9)
XYZxyz(6.4514, 4.1211, 15.4914)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A286F #4D6F28
analogous
#282A6F #4A286F #6E286F
triadic
#4A286F #6F4A28 #286F4A
tetradic
#4A286F #6F282A #4D6F28 #286F6E
square
#4A286F #6F282A #4D6F28 #286F6E
split-complementary
#4A286F #6F6E28 #2A6F28
monochromatic
#0F0816 #2C1842 #4A286F #68389C #8651C0

Accessibility & contrast

On white

11.51
#4A286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4A286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A286F
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A286F#FFFFFF#000000##FFFFFF
##4A286F1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013971
Deuteranopia (green-blind)
#14396D
Tritanopia (blue-blind)
#433747
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4a286f;
/* rgb */ color: rgb(74, 40, 111);
/* oklch */ color: oklch(35.9% 0.119 302.9);
Tailwind
colors: {
  custom: {
    50: '#7f6499',
    500: '#4a286f',
    950: '#000000',
  },
}
SCSS
$custom: #4a286f;
$custom-light: #7f6499;
$custom-dark: #000000;
JSON
{
  "hex": "#4a286f",
  "rgb": {
    "r": 74,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 268.732,
    "s": 47.02,
    "l": 29.608
  },
  "oklch": {
    "l": 0.35882,
    "c": 0.11919,
    "h": 302.9
  },
  "luminance": 0.04121
}

Semantic roles & 50–950 ramp

primary
#4A286F
secondary
#7BA151
accent
#D75197
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0A050E
muted
#7C7A7E

Preview Lab

Preview with #4A286F

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

Preview Lab → · Contrast checker → · Palette generator →

#4A286F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva