#4A246B#4A246B

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

Color values

HEX#4A246B
RGBrgb(74, 36, 107)
HSLhsl(272, 50%, 28%)
HSVhsv(272, 66%, 42%)
CMYKcmyk(30.8%, 66.4%, 0%, 58%)
CIE-LABlab(22.93, 32.48, -34.58)
CIE-LCHlch(22.93, 47.44, 313.21°)
OKLaboklab(34.96% 0.0703 -0.0979)
OKLCHoklch(34.96% 0.12 305.7)
XYZxyz(6.1082, 3.7792, 14.3147)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A246B #456B24
analogous
#27246B #4A246B #6B2468
triadic
#4A246B #6B4A24 #246B4A
tetradic
#4A246B #6B2724 #456B24 #24686B
square
#4A246B #6B2724 #456B24 #24686B
split-complementary
#4A246B #686B24 #246B27
monochromatic
#100817 #2A153D #4A246B #6A3399 #8948C1

Accessibility & contrast

On white

11.96
#4A246B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A246B
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A246B#FFFFFF#000000##FFFFFF
##4A246B1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366D
Deuteranopia (green-blind)
#143769
Tritanopia (blue-blind)
#443344
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4a246b;
/* rgb */ color: rgb(74, 36, 107);
/* oklch */ color: oklch(35.0% 0.120 305.7);
Tailwind
colors: {
  custom: {
    50: '#7f6196',
    500: '#4a246b',
    950: '#000000',
  },
}
SCSS
$custom: #4a246b;
$custom-light: #7f6196;
$custom-dark: #000000;
JSON
{
  "hex": "#4a246b",
  "rgb": {
    "r": 74,
    "g": 36,
    "b": 107
  },
  "hsl": {
    "h": 272.113,
    "s": 49.65,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34962,
    "c": 0.12048,
    "h": 305.7
  },
  "luminance": 0.03779
}

Semantic roles & 50–950 ramp

primary
#4A246B
secondary
#739E4D
accent
#D94F8F
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0A050D
muted
#7C797E

Preview Lab

Preview with #4A246B

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

Preview Lab → · Contrast checker → · Palette generator →

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