#4F246C#4F246C

#4F246C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.7% C 0.123 H 309.0°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#4F246C
RGBrgb(79, 36, 108)
HSLhsl(276, 50%, 28%)
HSVhsv(276, 67%, 42%)
CMYKcmyk(26.9%, 66.7%, 0%, 57.6%)
CIE-LABlab(23.69, 34.02, -33.96)
CIE-LCHlch(23.69, 48.07, 315.05°)
OKLaboklab(35.69% 0.0775 -0.0959)
OKLCHoklch(35.69% 0.123 309)
XYZxyz(6.5616, 4.0068, 14.6122)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F246C #416C24
analogous
#2B246C #4F246C #6C2465
triadic
#4F246C #6C4F24 #246C4F
tetradic
#4F246C #6C2B24 #416C24 #24656C
square
#4F246C #6C2B24 #416C24 #24656C
split-complementary
#4F246C #656C24 #246C2B
monochromatic
#110817 #2D153E #4F246C #71339A #9148C2

Accessibility & contrast

On white

11.66
#4F246C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#4F246C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F246C
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F246C#FFFFFF#000000##FFFFFF
##4F246C1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00376E
Deuteranopia (green-blind)
#19396A
Tritanopia (blue-blind)
#4B3244
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #4f246c;
/* rgb */ color: rgb(79, 36, 108);
/* oklch */ color: oklch(35.7% 0.123 309.0);
Tailwind
colors: {
  custom: {
    50: '#836296',
    500: '#4f246c',
    950: '#000000',
  },
}
SCSS
$custom: #4f246c;
$custom-light: #836296;
$custom-dark: #000000;
JSON
{
  "hex": "#4f246c",
  "rgb": {
    "r": 79,
    "g": 36,
    "b": 108
  },
  "hsl": {
    "h": 275.833,
    "s": 50,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35691,
    "c": 0.12327,
    "h": 309
  },
  "luminance": 0.04007
}

Semantic roles & 50–950 ramp

primary
#4F246C
secondary
#6E9F4D
accent
#DA4E86
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #4F246C

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

Preview Lab → · Contrast checker → · Palette generator →

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