#38510C#38510C

#38510C is a dark, moderate yellow-green. Relative luminance 0.068; OKLCH L 40.0% C 0.097 H 128.2°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#38510C
RGBrgb(56, 81, 12)
HSLhsl(82, 74%, 18%)
HSVhsv(82, 85%, 32%)
CMYKcmyk(30.9%, 0%, 85.2%, 68.2%)
CIE-LABlab(31.24, -20.87, 34.51)
CIE-LCHlch(31.24, 40.33, 121.16°)
OKLaboklab(40.02% -0.0599 0.0761)
OKLCHoklch(40.02% 0.097 128.2)
XYZxyz(4.6397, 6.7520, 1.4066)
Luminance0.0675 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38510C #250C51
analogous
#51470C #38510C #15510C
triadic
#38510C #0C3851 #510C38
tetradic
#38510C #0C5147 #250C51 #510C15
square
#38510C #0C5147 #250C51 #510C15
split-complementary
#38510C #0C1551 #470C51
monochromatic
#121B04 #131C04 #38510C #5D8614 #82BC1C

Accessibility & contrast

On white

8.93
#38510C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#38510C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38510C
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38510C#FFFFFF#000000##FFFFFF
##38510C1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#554B00
Deuteranopia (green-blind)
#524913
Tritanopia (blue-blind)
#3A4D44
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #38510c;
/* rgb */ color: rgb(56, 81, 12);
/* oklch */ color: oklch(40.0% 0.097 128.2);
Tailwind
colors: {
  custom: {
    50: '#728252',
    500: '#38510c',
    950: '#000000',
  },
}
SCSS
$custom: #38510c;
$custom-light: #728252;
$custom-dark: #000000;
JSON
{
  "hex": "#38510c",
  "rgb": {
    "r": 56,
    "g": 81,
    "b": 12
  },
  "hsl": {
    "h": 81.739,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.40016,
    "c": 0.09691,
    "h": 128.2
  },
  "luminance": 0.06752
}

Semantic roles & 50–950 ramp

primary
#38510C
secondary
#4F2C8C
accent
#37F17A
background
#F7F7F4
surface
#EDEEE7
border
#C8C9C3
text
#080A02
muted
#7B7C78

Preview Lab

Preview with #38510C

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

Preview Lab → · Contrast checker → · Palette generator →

#38510C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva