#4F309C#4F309C

#4F309C is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.3% C 0.165 H 290.5°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#4F309C
RGBrgb(79, 48, 156)
HSLhsl(257, 53%, 40%)
HSVhsv(257, 69%, 61%)
CMYKcmyk(49.4%, 69.2%, 0%, 38.8%)
CIE-LABlab(29.85, 40.59, -54.05)
CIE-LCHlch(29.85, 67.59, 306.90°)
OKLaboklab(41.3% 0.0578 -0.1549)
OKLCHoklch(41.3% 0.165 290.5)
XYZxyz(10.2804, 6.1761, 32.0965)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F309C #7D9C30
analogous
#30479C #4F309C #85309C
triadic
#4F309C #9C4F30 #309C4F
tetradic
#4F309C #9C3047 #7D9C30 #309C85
square
#4F309C #9C3047 #7D9C30 #309C85
split-complementary
#4F309C #9C8530 #479C30
monochromatic
#20133E #37226D #4F309C #6944C5 #8E73D4

Accessibility & contrast

On white

9.40
#4F309C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#4F309C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F309C
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F309C#FFFFFF#000000##FFFFFF
##4F309C1.009.402.249.40
#FFFFFF9.401.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489F
Deuteranopia (green-blind)
#00449A
Tritanopia (blue-blind)
#364B62
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4f309c;
/* rgb */ color: rgb(79, 48, 156);
/* oklch */ color: oklch(41.3% 0.165 290.5);
Tailwind
colors: {
  custom: {
    50: '#886bba',
    500: '#4f309c',
    950: '#000000',
  },
}
SCSS
$custom: #4f309c;
$custom-light: #886bba;
$custom-dark: #000000;
JSON
{
  "hex": "#4f309c",
  "rgb": {
    "r": 79,
    "g": 48,
    "b": 156
  },
  "hsl": {
    "h": 257.222,
    "s": 52.941,
    "l": 40
  },
  "oklch": {
    "l": 0.41298,
    "c": 0.16539,
    "h": 290.5
  },
  "luminance": 0.06176
}

Semantic roles & 50–950 ramp

primary
#4F309C
secondary
#A5BC6C
accent
#DC4BB3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #4F309C

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

Preview Lab → · Contrast checker → · Palette generator →

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