#3A7018#3A7018

#3A7018 is a mid, vivid yellow-green. Relative luminance 0.126; OKLCH L 48.9% C 0.131 H 136.2°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#3A7018
RGBrgb(58, 112, 24)
HSLhsl(97, 65%, 27%)
HSVhsv(97, 79%, 44%)
CMYKcmyk(48.2%, 0%, 78.6%, 56.1%)
CIE-LABlab(42.08, -33.97, 40.54)
CIE-LCHlch(42.08, 52.89, 129.96°)
OKLaboklab(48.94% -0.0946 0.0908)
OKLCHoklch(48.94% 0.131 136.2)
XYZxyz(7.7038, 12.5533, 2.8811)
Luminance0.1255 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7018 #4E1870
analogous
#667018 #3A7018 #187022
triadic
#3A7018 #183A70 #70183A
tetradic
#3A7018 #186670 #4E1870 #702218
square
#3A7018 #186670 #4E1870 #702218
split-complementary
#3A7018 #221870 #701866
monochromatic
#0D1905 #203E0D #3A7018 #54A223 #6FD330

Accessibility & contrast

On white

5.98
#3A7018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#3A7018 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A7018
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7018#FFFFFF#000000##FFFFFF
##3A70181.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746605
Deuteranopia (green-blind)
#6D6221
Tritanopia (blue-blind)
#386C5F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #3a7018;
/* rgb */ color: rgb(58, 112, 24);
/* oklch */ color: oklch(48.9% 0.131 136.2);
Tailwind
colors: {
  custom: {
    50: '#76995c',
    500: '#3a7018',
    950: '#000000',
  },
}
SCSS
$custom: #3a7018;
$custom-light: #76995c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7018",
  "rgb": {
    "r": 58,
    "g": 112,
    "b": 24
  },
  "hsl": {
    "h": 96.818,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.48938,
    "c": 0.1311,
    "h": 136.2
  },
  "luminance": 0.12554
}

Semantic roles & 50–950 ramp

primary
#3A7018
secondary
#7E3EA5
accent
#40E8A7
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E04
muted
#7B7E79

Preview Lab

Preview with #3A7018

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

Preview Lab → · Contrast checker → · Palette generator →

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