#3A7A17#3A7A17

#3A7A17 is a mid, vivid yellow-green. Relative luminance 0.149; OKLCH L 51.7% C 0.145 H 137.2°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#3A7A17
RGBrgb(58, 122, 23)
HSLhsl(99, 68%, 28%)
HSVhsv(99, 81%, 48%)
CMYKcmyk(52.5%, 0%, 81.1%, 52.2%)
CIE-LABlab(45.47, -38.25, 44.16)
CIE-LCHlch(45.47, 58.43, 130.90°)
OKLaboklab(51.72% -0.1062 0.0982)
OKLCHoklch(51.72% 0.145 137.2)
XYZxyz(8.8588, 14.8798, 3.2157)
Luminance0.1488 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7A17 #57177A
analogous
#6B7A17 #3A7A17 #177A25
triadic
#3A7A17 #173A7A #7A173A
tetradic
#3A7A17 #176B7A #57177A #7A2517
square
#3A7A17 #176B7A #57177A #7A2517
split-complementary
#3A7A17 #25177A #7A176B
monochromatic
#0C1A05 #22470D #3A7A17 #52AD21 #6DD933

Accessibility & contrast

On white

5.28
#3A7A17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#3A7A17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A7A17
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7A17#FFFFFF#000000##FFFFFF
##3A7A171.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#766A22
Tritanopia (blue-blind)
#367568
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #3a7a17;
/* rgb */ color: rgb(58, 122, 23);
/* oklch */ color: oklch(51.7% 0.145 137.2);
Tailwind
colors: {
  custom: {
    50: '#77a15d',
    500: '#3a7a17',
    950: '#000000',
  },
}
SCSS
$custom: #3a7a17;
$custom-light: #77a15d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7a17",
  "rgb": {
    "r": 58,
    "g": 122,
    "b": 23
  },
  "hsl": {
    "h": 98.788,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.51722,
    "c": 0.14461,
    "h": 137.2
  },
  "luminance": 0.1488
}

Semantic roles & 50–950 ramp

primary
#3A7A17
secondary
#873EAF
accent
#3DEBAD
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090F05
muted
#7B7E79

Preview Lab

Preview with #3A7A17

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

Preview Lab → · Contrast checker → · Palette generator →

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