#38731A#38731A

#38731A is a mid, vivid yellow-green. Relative luminance 0.132; OKLCH L 49.7% C 0.135 H 137.3°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#38731A
RGBrgb(56, 115, 26)
HSLhsl(100, 63%, 28%)
HSVhsv(100, 77%, 45%)
CMYKcmyk(51.3%, 0%, 77.4%, 54.9%)
CIE-LABlab(43.03, -35.78, 40.69)
CIE-LCHlch(43.03, 54.19, 131.33°)
OKLaboklab(49.7% -0.0992 0.0914)
OKLCHoklch(49.7% 0.135 137.3)
XYZxyz(7.9478, 13.1762, 3.1015)
Luminance0.1318 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38731A #551A73
analogous
#65731A #38731A #1A7328
triadic
#38731A #1A3873 #731A38
tetradic
#38731A #1A6573 #551A73 #73281A
square
#38731A #1A6573 #551A73 #73281A
split-complementary
#38731A #281A73 #731A65
monochromatic
#0C1906 #20410F #38731A #50A525 #6AD236

Accessibility & contrast

On white

5.78
#38731A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#38731A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #38731A
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38731A#FFFFFF#000000##FFFFFF
##38731A1.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776908
Deuteranopia (green-blind)
#6F6423
Tritanopia (blue-blind)
#346F62
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #38731a;
/* rgb */ color: rgb(56, 115, 26);
/* oklch */ color: oklch(49.7% 0.135 137.3);
Tailwind
colors: {
  custom: {
    50: '#759c5d',
    500: '#38731a',
    950: '#000000',
  },
}
SCSS
$custom: #38731a;
$custom-light: #759c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#38731a",
  "rgb": {
    "r": 56,
    "g": 115,
    "b": 26
  },
  "hsl": {
    "h": 99.775,
    "s": 63.121,
    "l": 27.647
  },
  "oklch": {
    "l": 0.49695,
    "c": 0.13489,
    "h": 137.3
  },
  "luminance": 0.13177
}

Semantic roles & 50–950 ramp

primary
#38731A
secondary
#8541A8
accent
#42E6AF
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #38731A

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

Preview Lab → · Contrast checker → · Palette generator →

#38731A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva