#4A246C#4A246C

#4A246C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.0% C 0.122 H 305.2°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#4A246C
RGBrgb(74, 36, 108)
HSLhsl(272, 50%, 28%)
HSVhsv(272, 67%, 42%)
CMYKcmyk(31.5%, 66.7%, 0%, 57.6%)
CIE-LABlab(23.00, 32.75, -35.11)
CIE-LCHlch(23.00, 48.01, 313.01°)
OKLaboklab(35.04% 0.0702 -0.0994)
OKLCHoklch(35.04% 0.122 305.2)
XYZxyz(6.1611, 3.8003, 14.5934)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A246C #466C24
analogous
#26246C #4A246C #6C246A
triadic
#4A246C #6C4A24 #246C4A
tetradic
#4A246C #6C2624 #466C24 #246A6C
square
#4A246C #6C2624 #466C24 #246A6C
split-complementary
#4A246C #6A6C24 #246C26
monochromatic
#100817 #2B153E #4A246C #69339A #8948C2

Accessibility & contrast

On white

11.93
#4A246C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#4A246C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A246C
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A246C#FFFFFF#000000##FFFFFF
##4A246C1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366E
Deuteranopia (green-blind)
#12376A
Tritanopia (blue-blind)
#443344
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4a246c;
/* rgb */ color: rgb(74, 36, 108);
/* oklch */ color: oklch(35.0% 0.122 305.2);
Tailwind
colors: {
  custom: {
    50: '#7f6197',
    500: '#4a246c',
    950: '#000000',
  },
}
SCSS
$custom: #4a246c;
$custom-light: #7f6197;
$custom-dark: #000000;
JSON
{
  "hex": "#4a246c",
  "rgb": {
    "r": 74,
    "g": 36,
    "b": 108
  },
  "hsl": {
    "h": 271.667,
    "s": 50,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35038,
    "c": 0.12171,
    "h": 305.2
  },
  "luminance": 0.038
}

Semantic roles & 50–950 ramp

primary
#4A246C
secondary
#749F4D
accent
#DA4E90
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0A050D
muted
#7C797E

Preview Lab

Preview with #4A246C

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

Preview Lab → · Contrast checker → · Palette generator →

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