#4F337A#4F337A

#4F337A is a dark, moderate violet. Relative luminance 0.054; OKLCH L 39.1% C 0.117 H 299.1°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#4F337A
RGBrgb(79, 51, 122)
HSLhsl(264, 41%, 34%)
HSVhsv(264, 58%, 48%)
CMYKcmyk(35.2%, 58.2%, 0%, 52.2%)
CIE-LABlab(27.94, 29.00, -36.08)
CIE-LCHlch(27.94, 46.29, 308.79°)
OKLaboklab(39.1% 0.0569 -0.1021)
OKLCHoklch(39.1% 0.117 299.1)
XYZxyz(7.9203, 5.4350, 19.0404)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F337A #5E7A33
analogous
#333B7A #4F337A #73337A
triadic
#4F337A #7A4F33 #337A4F
tetradic
#4F337A #7A333B #5E7A33 #337A73
square
#4F337A #7A333B #5E7A33 #337A73
split-complementary
#4F337A #7A7333 #3B7A33
monochromatic
#170F24 #33214F #4F337A #6B45A5 #8A68C0

Accessibility & contrast

On white

10.06
#4F337A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4F337A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F337A
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F337A#FFFFFF#000000##FFFFFF
##4F337A1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14427C
Deuteranopia (green-blind)
#1E4178
Tritanopia (blue-blind)
#464151
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4f337a;
/* rgb */ color: rgb(79, 51, 122);
/* oklch */ color: oklch(39.1% 0.117 299.1);
Tailwind
colors: {
  custom: {
    50: '#836ca1',
    500: '#4f337a',
    950: '#000000',
  },
}
SCSS
$custom: #4f337a;
$custom-light: #836ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f337a",
  "rgb": {
    "r": 79,
    "g": 51,
    "b": 122
  },
  "hsl": {
    "h": 263.662,
    "s": 41.04,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39098,
    "c": 0.11691,
    "h": 299.1
  },
  "luminance": 0.05435
}

Semantic roles & 50–950 ramp

primary
#4F337A
secondary
#8CA861
accent
#D157A1
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B070F
muted
#7C7A7E

Preview Lab

Preview with #4F337A

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

Preview Lab → · Contrast checker → · Palette generator →

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