#4F338D#4F338D

#4F338D is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.5% C 0.142 H 293.3°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#4F338D
RGBrgb(79, 51, 141)
HSLhsl(259, 47%, 38%)
HSVhsv(259, 64%, 55%)
CMYKcmyk(44%, 63.8%, 0%, 44.7%)
CIE-LABlab(29.29, 34.47, -45.76)
CIE-LCHlch(29.29, 57.29, 306.99°)
OKLaboklab(40.52% 0.0564 -0.1306)
OKLCHoklch(40.52% 0.142 293.3)
XYZxyz(9.2147, 5.9528, 25.8576)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F338D #718D33
analogous
#33448D #4F338D #7C338D
triadic
#4F338D #8D4F33 #338D4F
tetradic
#4F338D #8D3344 #718D33 #338D7C
square
#4F338D #8D3344 #718D33 #338D7C
split-complementary
#4F338D #8D7C33 #448D33
monochromatic
#1D1233 #362360 #4F338D #6843BA #8C6FCB

Accessibility & contrast

On white

9.59
#4F338D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#4F338D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F338D
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F338D#FFFFFF#000000##FFFFFF
##4F338D1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#3E485B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4f338d;
/* rgb */ color: rgb(79, 51, 141);
/* oklch */ color: oklch(40.5% 0.142 293.3);
Tailwind
colors: {
  custom: {
    50: '#856caf',
    500: '#4f338d',
    950: '#000000',
  },
}
SCSS
$custom: #4f338d;
$custom-light: #856caf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f338d",
  "rgb": {
    "r": 79,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 258.667,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40519,
    "c": 0.14223,
    "h": 293.3
  },
  "luminance": 0.05953
}

Semantic roles & 50–950 ramp

primary
#4F338D
secondary
#9CB369
accent
#D751AD
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #4F338D

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

Preview Lab → · Contrast checker → · Palette generator →

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