#4A7815#4A7815

#4A7815 is a mid, vivid yellow-green. Relative luminance 0.149; OKLCH L 52.0% C 0.134 H 132.1°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#4A7815
RGBrgb(74, 120, 21)
HSLhsl(88, 70%, 28%)
HSVhsv(88, 83%, 47%)
CMYKcmyk(38.3%, 0%, 82.5%, 52.9%)
CIE-LABlab(45.56, -31.86, 45.17)
CIE-LCHlch(45.56, 55.27, 125.20°)
OKLaboklab(52% -0.0902 0.0997)
OKLCHoklch(52% 0.134 132.1)
XYZxyz(9.6758, 14.9425, 3.0837)
Luminance0.1494 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7815 #431578
analogous
#787515 #4A7815 #187815
triadic
#4A7815 #154A78 #78154A
tetradic
#4A7815 #157875 #431578 #781518
square
#4A7815 #157875 #431578 #781518
split-complementary
#4A7815 #151878 #751578
monochromatic
#101A05 #2A440C #4A7815 #6AAC1E #8ADA2D

Accessibility & contrast

On white

5.27
#4A7815 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#4A7815 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7815
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7815#FFFFFF#000000##FFFFFF
##4A78151.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#776B20
Tritanopia (blue-blind)
#4B7366
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #4a7815;
/* rgb */ color: rgb(74, 120, 21);
/* oklch */ color: oklch(52.0% 0.134 132.1);
Tailwind
colors: {
  custom: {
    50: '#819f5c',
    500: '#4a7815',
    950: '#000000',
  },
}
SCSS
$custom: #4a7815;
$custom-light: #819f5c;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7815",
  "rgb": {
    "r": 74,
    "g": 120,
    "b": 21
  },
  "hsl": {
    "h": 87.879,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.51998,
    "c": 0.13442,
    "h": 132.1
  },
  "luminance": 0.14943
}

Semantic roles & 50–950 ramp

primary
#4A7815
secondary
#703BAE
accent
#3BED8E
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4A7815

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

Preview Lab → · Contrast checker → · Palette generator →

#4A7815 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva