#3A7B17#3A7B17

#3A7B17 is a mid, vivid yellow-green. Relative luminance 0.151; OKLCH L 52.0% C 0.146 H 137.3°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#3A7B17
RGBrgb(58, 123, 23)
HSLhsl(99, 68%, 29%)
HSVhsv(99, 81%, 48%)
CMYKcmyk(52.8%, 0%, 81.3%, 51.8%)
CIE-LABlab(45.81, -38.66, 44.48)
CIE-LCHlch(45.81, 58.94, 131.00°)
OKLaboklab(52% -0.1073 0.0988)
OKLCHoklch(52% 0.146 137.3)
XYZxyz(8.9822, 15.1267, 3.2569)
Luminance0.1513 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7B17 #58177B
analogous
#6C7B17 #3A7B17 #177B26
triadic
#3A7B17 #173A7B #7B173A
tetradic
#3A7B17 #176C7B #58177B #7B2617
square
#3A7B17 #176C7B #58177B #7B2617
split-complementary
#3A7B17 #26177B #7B176C
monochromatic
#0C1A05 #22470D #3A7B17 #52AF21 #6DD933

Accessibility & contrast

On white

5.22
#3A7B17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#3A7B17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A7B17
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7B17#FFFFFF#000000##FFFFFF
##3A7B171.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7000
Deuteranopia (green-blind)
#776A22
Tritanopia (blue-blind)
#367668
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #3a7b17;
/* rgb */ color: rgb(58, 123, 23);
/* oklch */ color: oklch(52.0% 0.146 137.3);
Tailwind
colors: {
  custom: {
    50: '#78a25d',
    500: '#3a7b17',
    950: '#000000',
  },
}
SCSS
$custom: #3a7b17;
$custom-light: #78a25d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7b17",
  "rgb": {
    "r": 58,
    "g": 123,
    "b": 23
  },
  "hsl": {
    "h": 99,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.52,
    "c": 0.14587,
    "h": 137.3
  },
  "luminance": 0.15127
}

Semantic roles & 50–950 ramp

primary
#3A7B17
secondary
#883EB0
accent
#3CEBAE
background
#F7FAF5
surface
#EEF3E9
border
#C9CDC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #3A7B17

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

Preview Lab → · Contrast checker → · Palette generator →

#3A7B17 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva