#3A7218#3A7218

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

Color values

HEX#3A7218
RGBrgb(58, 114, 24)
HSLhsl(97, 65%, 27%)
HSVhsv(97, 79%, 45%)
CMYKcmyk(49.1%, 0%, 78.9%, 55.3%)
CIE-LABlab(42.76, -34.83, 41.21)
CIE-LCHlch(42.76, 53.96, 130.21°)
OKLaboklab(49.5% -0.0969 0.0922)
OKLCHoklch(49.5% 0.134 136.4)
XYZxyz(7.9269, 12.9996, 2.9555)
Luminance0.1300 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7218 #501872
analogous
#677218 #3A7218 #187223
triadic
#3A7218 #183A72 #72183A
tetradic
#3A7218 #186772 #501872 #722318
square
#3A7218 #186772 #501872 #722318
split-complementary
#3A7218 #231872 #721867
monochromatic
#0D1905 #203F0D #3A7218 #54A523 #6ED431

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A7218#FFFFFF#000000##FFFFFF
##3A72181.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)
#766804
Deuteranopia (green-blind)
#6F6321
Tritanopia (blue-blind)
#376E61
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #3a7218;
/* rgb */ color: rgb(58, 114, 24);
/* oklch */ color: oklch(49.5% 0.134 136.4);
Tailwind
colors: {
  custom: {
    50: '#769b5c',
    500: '#3a7218',
    950: '#000000',
  },
}
SCSS
$custom: #3a7218;
$custom-light: #769b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7218",
  "rgb": {
    "r": 58,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 97.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.49497,
    "c": 0.13373,
    "h": 136.4
  },
  "luminance": 0.13
}

Semantic roles & 50–950 ramp

primary
#3A7218
secondary
#803EA7
accent
#40E8A9
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #3A7218

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

Preview Lab → · Contrast checker → · Palette generator →

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