#380746#380746

#380746 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.8% C 0.113 H 317.1°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#380746
RGBrgb(56, 7, 70)
HSLhsl(287, 82%, 15%)
HSVhsv(287, 90%, 27%)
CMYKcmyk(20%, 90%, 0%, 72.5%)
CIE-LABlab(12.19, 33.14, -27.18)
CIE-LCHlch(12.19, 42.86, 320.65°)
OKLaboklab(25.79% 0.0826 -0.0766)
OKLCHoklch(25.79% 0.113 317.1)
XYZxyz(2.8122, 1.4350, 5.9220)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#380746 #154607
analogous
#190746 #380746 #460734
triadic
#380746 #463807 #074638
tetradic
#380746 #461907 #154607 #073446
square
#380746 #461907 #154607 #073446
split-complementary
#380746 #344607 #074619
monochromatic
#16031C #16031C #380746 #650D7E #9112B5

Accessibility & contrast

On white

16.32
#380746 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#380746 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #380746
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##380746#FFFFFF#000000##FFFFFF
##3807461.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D48
Deuteranopia (green-blind)
#082145
Tritanopia (blue-blind)
#371627
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #380746;
/* rgb */ color: rgb(56, 7, 70);
/* oklch */ color: oklch(25.8% 0.113 317.1);
Tailwind
colors: {
  custom: {
    50: '#714e7a',
    500: '#380746',
    950: '#000000',
  },
}
SCSS
$custom: #380746;
$custom-light: #714e7a;
$custom-dark: #000000;
JSON
{
  "hex": "#380746",
  "rgb": {
    "r": 56,
    "g": 7,
    "b": 70
  },
  "hsl": {
    "h": 286.667,
    "s": 81.818,
    "l": 15.098
  },
  "oklch": {
    "l": 0.25791,
    "c": 0.11261,
    "h": 317.1
  },
  "luminance": 0.01435
}

Semantic roles & 50–950 ramp

primary
#380746
secondary
#3A8524
accent
#F8305C
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#080209
muted
#7B787B

Preview Lab

Preview with #380746

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

Preview Lab → · Contrast checker → · Palette generator →

#380746 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva