#38256E#38256E

#38256E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.3% C 0.120 H 290.3°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#38256E
RGBrgb(56, 37, 110)
HSLhsl(256, 50%, 29%)
HSVhsv(256, 66%, 43%)
CMYKcmyk(49.1%, 66.4%, 0%, 56.9%)
CIE-LABlab(21.17, 28.46, -39.47)
CIE-LCHlch(21.17, 48.66, 305.79°)
OKLaboklab(33.26% 0.0417 -0.1129)
OKLCHoklch(33.26% 0.12 290.3)
XYZxyz(5.1061, 3.2895, 15.1147)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38256E #5B6E25
analogous
#25376E #38256E #5D256E
triadic
#38256E #6E3825 #256E38
tetradic
#38256E #6E2537 #5B6E25 #256E5D
square
#38256E #6E2537 #5B6E25 #256E5D
split-complementary
#38256E #6E5D25 #376E25
monochromatic
#0C0817 #211640 #38256E #4F349C #6A4BC2

Accessibility & contrast

On white

12.67
#38256E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#38256E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38256E
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38256E#FFFFFF#000000##FFFFFF
##38256E1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#00316C
Tritanopia (blue-blind)
#273645
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #38256e;
/* rgb */ color: rgb(56, 37, 110);
/* oklch */ color: oklch(33.3% 0.120 290.3);
Tailwind
colors: {
  custom: {
    50: '#746098',
    500: '#38256e',
    950: '#000000',
  },
}
SCSS
$custom: #38256e;
$custom-light: #746098;
$custom-dark: #000000;
JSON
{
  "hex": "#38256e",
  "rgb": {
    "r": 56,
    "g": 37,
    "b": 110
  },
  "hsl": {
    "h": 255.616,
    "s": 49.66,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33256,
    "c": 0.12038,
    "h": 290.3
  },
  "luminance": 0.0329
}

Semantic roles & 50–950 ramp

primary
#38256E
secondary
#8BA14E
accent
#D94FB5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #38256E

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

Preview Lab → · Contrast checker → · Palette generator →

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