#4C38AF#4C38AF

#4C38AF is a dark, vivid violet. Relative luminance 0.075; OKLCH L 43.9% C 0.180 H 283.8°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#4C38AF
RGBrgb(76, 56, 175)
HSLhsl(250, 52%, 45%)
HSVhsv(250, 68%, 69%)
CMYKcmyk(56.6%, 68%, 0%, 31.4%)
CIE-LABlab(32.83, 41.26, -60.64)
CIE-LCHlch(32.83, 73.35, 304.23°)
OKLaboklab(43.86% 0.043 -0.1744)
OKLCHoklch(43.86% 0.18 283.8)
XYZxyz(12.1302, 7.4593, 41.3497)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C38AF #9BAF38
analogous
#385FAF #4C38AF #8738AF
triadic
#4C38AF #AF4C38 #38AF4C
tetradic
#4C38AF #AF385F #9BAF38 #38AF87
square
#4C38AF #AF385F #9BAF38 #38AF87
split-complementary
#4C38AF #AF8738 #5FAF38
monochromatic
#241A52 #382981 #4C38AF #6D5ACA #9688D9

Accessibility & contrast

On white

8.43
#4C38AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#4C38AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C38AF
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C38AF#FFFFFF#000000##FFFFFF
##4C38AF1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#0049AD
Tritanopia (blue-blind)
#1B576F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #4c38af;
/* rgb */ color: rgb(76, 56, 175);
/* oklch */ color: oklch(43.9% 0.180 283.8);
Tailwind
colors: {
  custom: {
    50: '#8870c8',
    500: '#4c38af',
    950: '#000000',
  },
}
SCSS
$custom: #4c38af;
$custom-light: #8870c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c38af",
  "rgb": {
    "r": 76,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 250.084,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43865,
    "c": 0.17963,
    "h": 283.8
  },
  "luminance": 0.0746
}

Semantic roles & 50–950 ramp

primary
#4C38AF
secondary
#B8C380
accent
#DB4DC3
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4C38AF

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

Preview Lab → · Contrast checker → · Palette generator →

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