#4F338C#4F338C

#4F338C is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.4% C 0.141 H 293.6°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#4F338C
RGBrgb(79, 51, 140)
HSLhsl(259, 47%, 37%)
HSVhsv(259, 64%, 55%)
CMYKcmyk(43.6%, 63.6%, 0%, 45.1%)
CIE-LABlab(29.22, 34.17, -45.27)
CIE-LCHlch(29.22, 56.72, 307.05°)
OKLaboklab(40.44% 0.0564 -0.1291)
OKLCHoklch(40.44% 0.141 293.6)
XYZxyz(9.1406, 5.9231, 25.4675)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F338C #708C33
analogous
#33448C #4F338C #7B338C
triadic
#4F338C #8C4F33 #338C4F
tetradic
#4F338C #8C3344 #708C33 #338C7B
square
#4F338C #8C3344 #708C33 #338C7B
split-complementary
#4F338C #8C7B33 #448C33
monochromatic
#1C1232 #36235F #4F338C #6843B9 #8C6FCB

Accessibility & contrast

On white

9.61
#4F338C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#4F338C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F338C
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F338C#FFFFFF#000000##FFFFFF
##4F338C1.009.612.189.61
#FFFFFF9.611.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#3E475A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4f338c;
/* rgb */ color: rgb(79, 51, 140);
/* oklch */ color: oklch(40.4% 0.141 293.6);
Tailwind
colors: {
  custom: {
    50: '#856cae',
    500: '#4f338c',
    950: '#000000',
  },
}
SCSS
$custom: #4f338c;
$custom-light: #856cae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f338c",
  "rgb": {
    "r": 79,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 258.876,
    "s": 46.597,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40441,
    "c": 0.14093,
    "h": 293.6
  },
  "luminance": 0.05923
}

Semantic roles & 50–950 ramp

primary
#4F338C
secondary
#9BB268
accent
#D652AC
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4F338C

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

Preview Lab → · Contrast checker → · Palette generator →

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