#4A1768#4A1768

#4A1768 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.135 H 309.5°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#4A1768
RGBrgb(74, 23, 104)
HSLhsl(278, 64%, 25%)
HSVhsv(278, 78%, 41%)
CMYKcmyk(28.8%, 77.9%, 0%, 59.2%)
CIE-LABlab(20.32, 38.36, -36.84)
CIE-LCHlch(20.32, 53.19, 316.15°)
OKLaboklab(33.02% 0.0862 -0.1044)
OKLCHoklch(33.02% 0.135 309.5)
XYZxyz(5.6286, 3.0682, 13.3897)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1768 #356817
analogous
#221768 #4A1768 #68175E
triadic
#4A1768 #684A17 #17684A
tetradic
#4A1768 #682217 #356817 #175E68
square
#4A1768 #682217 #356817 #175E68
split-complementary
#4A1768 #5E6817 #176822
monochromatic
#120619 #260C36 #4A1768 #6E229A #912DCC

Accessibility & contrast

On white

13.01
#4A1768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#4A1768 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1768
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1768#FFFFFF#000000##FFFFFF
##4A17681.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6A
Deuteranopia (green-blind)
#033266
Tritanopia (blue-blind)
#462A3E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4a1768;
/* rgb */ color: rgb(74, 23, 104);
/* oklch */ color: oklch(33.0% 0.135 309.5);
Tailwind
colors: {
  custom: {
    50: '#805a94',
    500: '#4a1768',
    950: '#000000',
  },
}
SCSS
$custom: #4a1768;
$custom-light: #805a94;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1768",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 277.778,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.3302,
    "c": 0.13544,
    "h": 309.5
  },
  "luminance": 0.03068
}

Semantic roles & 50–950 ramp

primary
#4A1768
secondary
#619E3D
accent
#E7417E
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4A1768

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

Preview Lab → · Contrast checker → · Palette generator →

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