#3A7217#3A7217

#3A7217 is a mid, vivid yellow-green. Relative luminance 0.130; OKLCH L 49.5% C 0.134 H 136.3°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#3A7217
RGBrgb(58, 114, 23)
HSLhsl(97, 66%, 27%)
HSVhsv(97, 80%, 45%)
CMYKcmyk(49.1%, 0%, 79.8%, 55.3%)
CIE-LABlab(42.76, -34.90, 41.56)
CIE-LCHlch(42.76, 54.27, 130.02°)
OKLaboklab(49.49% -0.0971 0.0928)
OKLCHoklch(49.49% 0.134 136.3)
XYZxyz(7.9167, 12.9955, 2.9017)
Luminance0.1300 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7217 #4F1772
analogous
#687217 #3A7217 #177222
triadic
#3A7217 #173A72 #72173A
tetradic
#3A7217 #176872 #4F1772 #722217
square
#3A7217 #176872 #4F1772 #722217
split-complementary
#3A7217 #221772 #721768
monochromatic
#0D1905 #203F0D #3A7217 #54A521 #6ED52E

Accessibility & contrast

On white

5.83
#3A7217 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#3A7217 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A7217
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7217#FFFFFF#000000##FFFFFF
##3A72171.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766802
Deuteranopia (green-blind)
#6F6321
Tritanopia (blue-blind)
#376E61
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #3a7217;
/* rgb */ color: rgb(58, 114, 23);
/* oklch */ color: oklch(49.5% 0.134 136.3);
Tailwind
colors: {
  custom: {
    50: '#769b5c',
    500: '#3a7217',
    950: '#000000',
  },
}
SCSS
$custom: #3a7217;
$custom-light: #769b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7217",
  "rgb": {
    "r": 58,
    "g": 114,
    "b": 23
  },
  "hsl": {
    "h": 96.923,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.4949,
    "c": 0.13432,
    "h": 136.3
  },
  "luminance": 0.12996
}

Semantic roles & 50–950 ramp

primary
#3A7217
secondary
#7F3DA8
accent
#3EE9A8
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #3A7217

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

Preview Lab → · Contrast checker → · Palette generator →

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