#4A7B1B#4A7B1B

#4A7B1B is a mid, vivid yellow-green. Relative luminance 0.157; OKLCH L 52.8% C 0.135 H 133.2°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#4A7B1B
RGBrgb(74, 123, 27)
HSLhsl(91, 64%, 29%)
HSVhsv(91, 78%, 48%)
CMYKcmyk(39.8%, 0%, 78%, 51.8%)
CIE-LABlab(46.58, -32.87, 44.09)
CIE-LCHlch(46.58, 55.00, 126.71°)
OKLaboklab(52.85% -0.0925 0.0984)
OKLCHoklch(52.85% 0.135 133.2)
XYZxyz(10.1047, 15.7004, 3.5348)
Luminance0.1570 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A7B1B #4C1B7B
analogous
#7A7B1B #4A7B1B #1B7B1C
triadic
#4A7B1B #1B4A7B #7B1B4A
tetradic
#4A7B1B #1B7A7B #4C1B7B #7B1C1B
square
#4A7B1B #1B7A7B #4C1B7B #7B1C1B
split-complementary
#4A7B1B #1C1B7B #7B1B7A
monochromatic
#0F1906 #2C4910 #4A7B1B #68AD26 #87D43C

Accessibility & contrast

On white

5.07
#4A7B1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#4A7B1B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A7B1B
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A7B1B#FFFFFF#000000##FFFFFF
##4A7B1B1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807106
Deuteranopia (green-blind)
#7A6D25
Tritanopia (blue-blind)
#4A7669
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #4a7b1b;
/* rgb */ color: rgb(74, 123, 27);
/* oklch */ color: oklch(52.8% 0.135 133.2);
Tailwind
colors: {
  custom: {
    50: '#81a15f',
    500: '#4a7b1b',
    950: '#000000',
  },
}
SCSS
$custom: #4a7b1b;
$custom-light: #81a15f;
$custom-dark: #000000;
JSON
{
  "hex": "#4a7b1b",
  "rgb": {
    "r": 74,
    "g": 123,
    "b": 27
  },
  "hsl": {
    "h": 90.625,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.52845,
    "c": 0.13504,
    "h": 133.2
  },
  "luminance": 0.15701
}

Semantic roles & 50–950 ramp

primary
#4A7B1B
secondary
#7A43AF
accent
#41E796
background
#F8F9F5
surface
#EFF2EA
border
#CACCC6
text
#0B0F05
muted
#7C7E79

Preview Lab

Preview with #4A7B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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