#4F38BE#4F38BE

#4F38BE is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.5% C 0.198 H 283.0°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#4F38BE
RGBrgb(79, 56, 190)
HSLhsl(250, 54%, 48%)
HSVhsv(250, 71%, 75%)
CMYKcmyk(58.4%, 70.5%, 0%, 25.5%)
CIE-LABlab(34.41, 46.33, -66.93)
CIE-LCHlch(34.41, 81.40, 304.69°)
OKLaboklab(45.47% 0.0446 -0.1927)
OKLCHoklch(45.47% 0.198 283)
XYZxyz(13.9300, 8.2074, 49.5554)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F38BE #A7BE38
analogous
#3864BE #4F38BE #9238BE
triadic
#4F38BE #BE4F38 #38BE4F
tetradic
#4F38BE #BE3864 #A7BE38 #38BE92
square
#4F38BE #BE3864 #A7BE38 #38BE92
split-complementary
#4F38BE #BE9238 #64BE38
monochromatic
#281C5F #3B2A8F #4F38BE #7562D1 #9F92DF

Accessibility & contrast

On white

7.95
#4F38BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#4F38BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F38BE
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F38BE#FFFFFF#000000##FFFFFF
##4F38BE1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C2
Deuteranopia (green-blind)
#004CBB
Tritanopia (blue-blind)
#0A5C77
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4f38be;
/* rgb */ color: rgb(79, 56, 190);
/* oklch */ color: oklch(45.5% 0.198 283.0);
Tailwind
colors: {
  custom: {
    50: '#8c71d3',
    500: '#4f38be',
    950: '#000000',
  },
}
SCSS
$custom: #4f38be;
$custom-light: #8c71d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f38be",
  "rgb": {
    "r": 79,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 250.299,
    "s": 54.472,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45468,
    "c": 0.19784,
    "h": 283
  },
  "luminance": 0.08208
}

Semantic roles & 50–950 ramp

primary
#4F38BE
secondary
#BECA88
accent
#DE4AC4
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4F38BE

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

Preview Lab → · Contrast checker → · Palette generator →

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