#3A7818#3A7818

#3A7818 is a mid, vivid yellow-green. Relative luminance 0.144; OKLCH L 51.2% C 0.142 H 137.1°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#3A7818
RGBrgb(58, 120, 24)
HSLhsl(99, 67%, 28%)
HSVhsv(99, 80%, 47%)
CMYKcmyk(51.7%, 0%, 80%, 52.9%)
CIE-LABlab(44.80, -37.37, 43.18)
CIE-LCHlch(44.80, 57.10, 130.87°)
OKLaboklab(51.17% -0.1037 0.0963)
OKLCHoklch(51.17% 0.142 137.1)
XYZxyz(8.6260, 14.3978, 3.1885)
Luminance0.1440 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7818 #561878
analogous
#6A7818 #3A7818 #187826
triadic
#3A7818 #183A78 #78183A
tetradic
#3A7818 #186A78 #561878 #782618
square
#3A7818 #186A78 #561878 #782618
split-complementary
#3A7818 #261878 #78186A
monochromatic
#0C1A05 #21450E #3A7818 #53AB22 #6ED634

Accessibility & contrast

On white

5.41
#3A7818 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#3A7818 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A7818
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7818#FFFFFF#000000##FFFFFF
##3A78181.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D01
Deuteranopia (green-blind)
#746823
Tritanopia (blue-blind)
#367366
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #3a7818;
/* rgb */ color: rgb(58, 120, 24);
/* oklch */ color: oklch(51.2% 0.142 137.1);
Tailwind
colors: {
  custom: {
    50: '#779f5d',
    500: '#3a7818',
    950: '#000000',
  },
}
SCSS
$custom: #3a7818;
$custom-light: #779f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7818",
  "rgb": {
    "r": 58,
    "g": 120,
    "b": 24
  },
  "hsl": {
    "h": 98.75,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.51171,
    "c": 0.14152,
    "h": 137.1
  },
  "luminance": 0.14398
}

Semantic roles & 50–950 ramp

primary
#3A7818
secondary
#863FAD
accent
#3EEAAD
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090E05
muted
#7B7E79

Preview Lab

Preview with #3A7818

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

Preview Lab → · Contrast checker → · Palette generator →

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