#3A7B18#3A7B18

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

Color values

HEX#3A7B18
RGBrgb(58, 123, 24)
HSLhsl(99, 67%, 29%)
HSVhsv(99, 80%, 48%)
CMYKcmyk(52.8%, 0%, 80.5%, 51.8%)
CIE-LABlab(45.81, -38.60, 44.15)
CIE-LCHlch(45.81, 58.65, 131.16°)
OKLaboklab(52.01% -0.107 0.0983)
OKLCHoklch(52.01% 0.145 137.4)
XYZxyz(8.9925, 15.1307, 3.3106)
Luminance0.1513 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7B18 #59187B
analogous
#6C7B18 #3A7B18 #187B28
triadic
#3A7B18 #183A7B #7B183A
tetradic
#3A7B18 #186C7B #59187B #7B2818
square
#3A7B18 #186C7B #59187B #7B2818
split-complementary
#3A7B18 #28187B #7B186C
monochromatic
#0C1A05 #22480E #3A7B18 #52AE22 #6DD836

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A7B18#FFFFFF#000000##FFFFFF
##3A7B181.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)
#776A23
Tritanopia (blue-blind)
#367669
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #3a7b18;
/* rgb */ color: rgb(58, 123, 24);
/* oklch */ color: oklch(52.0% 0.145 137.4);
Tailwind
colors: {
  custom: {
    50: '#78a25e',
    500: '#3a7b18',
    950: '#000000',
  },
}
SCSS
$custom: #3a7b18;
$custom-light: #78a25e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7b18",
  "rgb": {
    "r": 58,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 99.394,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52006,
    "c": 0.14534,
    "h": 137.4
  },
  "luminance": 0.15131
}

Semantic roles & 50–950 ramp

primary
#3A7B18
secondary
#893FB0
accent
#3EEAAF
background
#F7FAF5
surface
#EEF3E9
border
#C9CDC5
text
#090F05
muted
#7B7F79

Preview Lab

Preview with #3A7B18

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

Preview Lab → · Contrast checker → · Palette generator →

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