#38731F#38731F

#38731F is a mid, vivid green. Relative luminance 0.132; OKLCH L 49.7% C 0.132 H 138.0°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#38731F
RGBrgb(56, 115, 31)
HSLhsl(102, 58%, 29%)
HSVhsv(102, 73%, 45%)
CMYKcmyk(51.3%, 0%, 73%, 54.9%)
CIE-LABlab(43.06, -35.38, 38.72)
CIE-LCHlch(43.06, 52.45, 132.42°)
OKLaboklab(49.74% -0.0977 0.088)
OKLCHoklch(49.74% 0.132 138)
XYZxyz(8.0087, 13.2006, 3.4220)
Luminance0.1320 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38731F #5A1F73
analogous
#62731F #38731F #1F7330
triadic
#38731F #1F3873 #731F38
tetradic
#38731F #1F6273 #5A1F73 #73301F
square
#38731F #1F6273 #5A1F73 #73301F
split-complementary
#38731F #301F73 #731F62
monochromatic
#0C1806 #214312 #38731F #4FA32C #6ACC41

Accessibility & contrast

On white

5.77
#38731F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #38731F
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38731F#FFFFFF#000000##FFFFFF
##38731F1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #38731f;
/* rgb */ color: rgb(56, 115, 31);
/* oklch */ color: oklch(49.7% 0.132 138.0);
Tailwind
colors: {
  custom: {
    50: '#759c60',
    500: '#38731f',
    950: '#000000',
  },
}
SCSS
$custom: #38731f;
$custom-light: #759c60;
$custom-dark: #000000;
JSON
{
  "hex": "#38731f",
  "rgb": {
    "r": 56,
    "g": 115,
    "b": 31
  },
  "hsl": {
    "h": 102.143,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.49736,
    "c": 0.13155,
    "h": 138
  },
  "luminance": 0.13201
}

Semantic roles & 50–950 ramp

primary
#38731F
secondary
#8A47A7
accent
#47E1B3
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#090E05
muted
#7B7E79

Preview Lab

Preview with #38731F

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

Preview Lab → · Contrast checker → · Palette generator →

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