#4F337D#4F337D

#4F337D is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.3% C 0.121 H 298.1°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#4F337D
RGBrgb(79, 51, 125)
HSLhsl(263, 42%, 35%)
HSVhsv(263, 59%, 49%)
CMYKcmyk(36.8%, 59.2%, 0%, 51%)
CIE-LABlab(28.14, 29.84, -37.65)
CIE-LCHlch(28.14, 48.04, 308.41°)
OKLaboklab(39.31% 0.0569 -0.1067)
OKLCHoklch(39.31% 0.121 298.1)
XYZxyz(8.1090, 5.5105, 20.0345)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F337D #617D33
analogous
#333C7D #4F337D #74337D
triadic
#4F337D #7D4F33 #337D4F
tetradic
#4F337D #7D333C #617D33 #337D74
square
#4F337D #7D333C #617D33 #337D74
split-complementary
#4F337D #7D7433 #3C7D33
monochromatic
#181026 #342152 #4F337D #6A45A8 #8A69C2

Accessibility & contrast

On white

9.99
#4F337D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#4F337D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F337D
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F337D#FFFFFF#000000##FFFFFF
##4F337D1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F437F
Deuteranopia (green-blind)
#1A427B
Tritanopia (blue-blind)
#454253
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4f337d;
/* rgb */ color: rgb(79, 51, 125);
/* oklch */ color: oklch(39.3% 0.121 298.1);
Tailwind
colors: {
  custom: {
    50: '#836ca3',
    500: '#4f337d',
    950: '#000000',
  },
}
SCSS
$custom: #4f337d;
$custom-light: #836ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f337d",
  "rgb": {
    "r": 79,
    "g": 51,
    "b": 125
  },
  "hsl": {
    "h": 262.703,
    "s": 42.045,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39312,
    "c": 0.12097,
    "h": 298.1
  },
  "luminance": 0.05511
}

Semantic roles & 50–950 ramp

primary
#4F337D
secondary
#8FAA62
accent
#D256A3
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4F337D

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

Preview Lab → · Contrast checker → · Palette generator →

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