#4F38BB#4F38BB

#4F38BB is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.2% C 0.194 H 283.4°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#4F38BB
RGBrgb(79, 56, 187)
HSLhsl(251, 54%, 48%)
HSVhsv(251, 70%, 73%)
CMYKcmyk(57.8%, 70.1%, 0%, 26.7%)
CIE-LABlab(34.14, 45.42, -65.60)
CIE-LCHlch(34.14, 79.78, 304.70°)
OKLaboklab(45.2% 0.0452 -0.1888)
OKLCHoklch(45.2% 0.194 283.4)
XYZxyz(13.6055, 8.0776, 47.8463)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F38BB #A4BB38
analogous
#3863BB #4F38BB #9038BB
triadic
#4F38BB #BB4F38 #38BB4F
tetradic
#4F38BB #BB3863 #A4BB38 #38BB90
square
#4F38BB #BB3863 #A4BB38 #38BB90
split-complementary
#4F38BB #BB9038 #63BB38
monochromatic
#271C5D #3B2A8C #4F38BB #7461D0 #9D90DE

Accessibility & contrast

On white

8.03
#4F38BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#4F38BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F38BB
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F38BB#FFFFFF#000000##FFFFFF
##4F38BB1.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BF
Deuteranopia (green-blind)
#004CB9
Tritanopia (blue-blind)
#135B75
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4f38bb;
/* rgb */ color: rgb(79, 56, 187);
/* oklch */ color: oklch(45.2% 0.194 283.4);
Tailwind
colors: {
  custom: {
    50: '#8c71d1',
    500: '#4f38bb',
    950: '#000000',
  },
}
SCSS
$custom: #4f38bb;
$custom-light: #8c71d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f38bb",
  "rgb": {
    "r": 79,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 250.534,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45195,
    "c": 0.19417,
    "h": 283.4
  },
  "luminance": 0.08078
}

Semantic roles & 50–950 ramp

primary
#4F38BB
secondary
#BDC886
accent
#DD4BC4
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #4F38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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