#38791B#38791B

#38791B is a mid, vivid green. Relative luminance 0.146; OKLCH L 51.4% C 0.142 H 138.0°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#38791B
RGBrgb(56, 121, 27)
HSLhsl(101, 64%, 29%)
HSVhsv(101, 78%, 47%)
CMYKcmyk(53.7%, 0%, 77.7%, 52.5%)
CIE-LABlab(45.07, -38.21, 42.34)
CIE-LCHlch(45.07, 57.03, 132.06°)
OKLaboklab(51.38% -0.1056 0.095)
OKLCHoklch(51.38% 0.142 138)
XYZxyz(8.6658, 14.5940, 3.3970)
Luminance0.1459 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38791B #5C1B79
analogous
#67791B #38791B #1B792D
triadic
#38791B #1B3879 #791B38
tetradic
#38791B #1B6779 #5C1B79 #792D1B
square
#38791B #1B6779 #5C1B79 #792D1B
split-complementary
#38791B #2D1B79 #791B67
monochromatic
#0C1906 #214710 #38791B #4FAB26 #6AD33B

Accessibility & contrast

On white

5.36
#38791B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#38791B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #38791B
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38791B#FFFFFF#000000##FFFFFF
##38791B1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E07
Deuteranopia (green-blind)
#756925
Tritanopia (blue-blind)
#337567
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #38791b;
/* rgb */ color: rgb(56, 121, 27);
/* oklch */ color: oklch(51.4% 0.142 138.0);
Tailwind
colors: {
  custom: {
    50: '#76a05f',
    500: '#38791b',
    950: '#000000',
  },
}
SCSS
$custom: #38791b;
$custom-light: #76a05f;
$custom-dark: #000000;
JSON
{
  "hex": "#38791b",
  "rgb": {
    "r": 56,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 101.489,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.5138,
    "c": 0.14209,
    "h": 138
  },
  "luminance": 0.14595
}

Semantic roles & 50–950 ramp

primary
#38791B
secondary
#8C43AD
accent
#41E7B4
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090F05
muted
#7B7E79

Preview Lab

Preview with #38791B

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

Preview Lab → · Contrast checker → · Palette generator →

#38791B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva