#38074E#38074E

#38074E is a dark, vivid purple. Relative luminance 0.015; OKLCH L 26.5% C 0.120 H 311.9°. Best body text is #FFFFFF at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#38074E
RGBrgb(56, 7, 78)
HSLhsl(281, 84%, 17%)
HSVhsv(281, 91%, 31%)
CMYKcmyk(28.2%, 91%, 0%, 69.4%)
CIE-LABlab(12.88, 34.96, -31.61)
CIE-LCHlch(12.88, 47.14, 317.88°)
OKLaboklab(26.49% 0.0805 -0.0896)
OKLCHoklch(26.49% 0.121 311.9)
XYZxyz(3.0818, 1.5429, 7.3417)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38074E #1D4E07
analogous
#14074E #38074E #4E0741
triadic
#38074E #4E3807 #074E38
tetradic
#38074E #4E1407 #1D4E07 #07414E
square
#38074E #4E1407 #1D4E07 #07414E
split-complementary
#38074E #414E07 #074E14
monochromatic
#14031C #14031C #38074E #600C86 #8911BE

Accessibility & contrast

On white

16.05
#38074E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#38074E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38074E
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38074E#FFFFFF#000000##FFFFFF
##38074E1.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F50
Deuteranopia (green-blind)
#00224D
Tritanopia (blue-blind)
#351A2C
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #38074e;
/* rgb */ color: rgb(56, 7, 78);
/* oklch */ color: oklch(26.5% 0.120 311.9);
Tailwind
colors: {
  custom: {
    50: '#724f80',
    500: '#38074e',
    950: '#000000',
  },
}
SCSS
$custom: #38074e;
$custom-light: #724f80;
$custom-dark: #000000;
JSON
{
  "hex": "#38074e",
  "rgb": {
    "r": 56,
    "g": 7,
    "b": 78
  },
  "hsl": {
    "h": 281.408,
    "s": 83.529,
    "l": 16.667
  },
  "oklch": {
    "l": 0.26489,
    "c": 0.1205,
    "h": 311.9
  },
  "luminance": 0.01543
}

Semantic roles & 50–950 ramp

primary
#38074E
secondary
#458C25
accent
#FA2E6D
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#08020A
muted
#7B787C

Preview Lab

Preview with #38074E

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

Preview Lab → · Contrast checker → · Palette generator →

#38074E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva