#38540F#38540F

#38540F is a dark, moderate yellow-green. Relative luminance 0.072; OKLCH L 40.9% C 0.099 H 129.7°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#38540F
RGBrgb(56, 84, 15)
HSLhsl(84, 70%, 19%)
HSVhsv(84, 82%, 33%)
CMYKcmyk(33.3%, 0%, 82.1%, 67.1%)
CIE-LABlab(32.29, -22.23, 34.41)
CIE-LCHlch(32.29, 40.96, 122.86°)
OKLaboklab(40.88% -0.0634 0.0765)
OKLCHoklch(40.88% 0.099 129.7)
XYZxyz(4.8874, 7.2157, 1.5871)
Luminance0.0722 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38540F #2B0F54
analogous
#544E0F #38540F #16540F
triadic
#38540F #0F3854 #540F38
tetradic
#38540F #0F544E #2B0F54 #540F16
square
#38540F #0F544E #2B0F54 #540F16
split-complementary
#38540F #0F1654 #4E0F54
monochromatic
#111A05 #152006 #38540F #5B8818 #7DBC22

Accessibility & contrast

On white

8.60
#38540F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#38540F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38540F
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38540F#FFFFFF#000000##FFFFFF
##38540F1.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D02
Deuteranopia (green-blind)
#544B16
Tritanopia (blue-blind)
#3A5047
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #38540f;
/* rgb */ color: rgb(56, 84, 15);
/* oklch */ color: oklch(40.9% 0.099 129.7);
Tailwind
colors: {
  custom: {
    50: '#728453',
    500: '#38540f',
    950: '#000000',
  },
}
SCSS
$custom: #38540f;
$custom-light: #728453;
$custom-dark: #000000;
JSON
{
  "hex": "#38540f",
  "rgb": {
    "r": 56,
    "g": 84,
    "b": 15
  },
  "hsl": {
    "h": 84.348,
    "s": 69.697,
    "l": 19.412
  },
  "oklch": {
    "l": 0.40882,
    "c": 0.09933,
    "h": 129.7
  },
  "luminance": 0.07216
}

Semantic roles & 50–950 ramp

primary
#38540F
secondary
#57318E
accent
#3BED83
background
#F7F8F4
surface
#EDEFE8
border
#C8CAC4
text
#080B03
muted
#7B7C78

Preview Lab

Preview with #38540F

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

Preview Lab → · Contrast checker → · Palette generator →

#38540F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva