#4F337C#4F337C

#4F337C is a dark, moderate violet. Relative luminance 0.055; OKLCH L 39.2% C 0.120 H 298.4°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#4F337C
RGBrgb(79, 51, 124)
HSLhsl(263, 42%, 34%)
HSVhsv(263, 59%, 49%)
CMYKcmyk(36.3%, 58.9%, 0%, 51.4%)
CIE-LABlab(28.07, 29.56, -37.13)
CIE-LCHlch(28.07, 47.46, 308.53°)
OKLaboklab(39.24% 0.0569 -0.1052)
OKLCHoklch(39.24% 0.12 298.4)
XYZxyz(8.0455, 5.4851, 19.6997)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F337C #607C33
analogous
#333C7C #4F337C #74337C
triadic
#4F337C #7C4F33 #337C4F
tetradic
#4F337C #7C333C #607C33 #337C74
square
#4F337C #7C333C #607C33 #337C74
split-complementary
#4F337C #7C7433 #3C7C33
monochromatic
#180F25 #332151 #4F337C #6B45A7 #8A68C1

Accessibility & contrast

On white

10.01
#4F337C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F337C
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F337C#FFFFFF#000000##FFFFFF
##4F337C1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11427E
Deuteranopia (green-blind)
#1B427A
Tritanopia (blue-blind)
#454252
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4f337c;
/* rgb */ color: rgb(79, 51, 124);
/* oklch */ color: oklch(39.2% 0.120 298.4);
Tailwind
colors: {
  custom: {
    50: '#836ca2',
    500: '#4f337c',
    950: '#000000',
  },
}
SCSS
$custom: #4f337c;
$custom-light: #836ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f337c",
  "rgb": {
    "r": 79,
    "g": 51,
    "b": 124
  },
  "hsl": {
    "h": 263.014,
    "s": 41.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3924,
    "c": 0.11963,
    "h": 298.4
  },
  "luminance": 0.05485
}

Semantic roles & 50–950 ramp

primary
#4F337C
secondary
#8EA962
accent
#D256A2
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4F337C

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

Preview Lab → · Contrast checker → · Palette generator →

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