#4B7315#4B7315

#4B7315 is a mid, vivid yellow-green. Relative luminance 0.138; OKLCH L 50.7% C 0.127 H 130.7°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#4B7315
RGBrgb(75, 115, 21)
HSLhsl(86, 69%, 27%)
HSVhsv(86, 82%, 45%)
CMYKcmyk(34.8%, 0%, 81.7%, 54.9%)
CIE-LABlab(43.96, -29.15, 43.71)
CIE-LCHlch(43.96, 52.54, 123.70°)
OKLaboklab(50.71% -0.0829 0.0966)
OKLCHoklch(50.71% 0.127 130.7)
XYZxyz(9.1677, 13.8111, 2.8921)
Luminance0.1381 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B7315 #3D1573
analogous
#736C15 #4B7315 #1C7315
triadic
#4B7315 #154B73 #73154B
tetradic
#4B7315 #15736C #3D1573 #73151C
square
#4B7315 #15736C #3D1573 #73151C
split-complementary
#4B7315 #151C73 #6C1573
monochromatic
#111A05 #293F0C #4B7315 #6DA71E #8ED82A

Accessibility & contrast

On white

5.58
#4B7315 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#4B7315 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4B7315
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B7315#FFFFFF#000000##FFFFFF
##4B73151.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#73671F
Tritanopia (blue-blind)
#4D6E62
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #4b7315;
/* rgb */ color: rgb(75, 115, 21);
/* oklch */ color: oklch(50.7% 0.127 130.7);
Tailwind
colors: {
  custom: {
    50: '#819b5b',
    500: '#4b7315',
    950: '#000000',
  },
}
SCSS
$custom: #4b7315;
$custom-light: #819b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#4b7315",
  "rgb": {
    "r": 75,
    "g": 115,
    "b": 21
  },
  "hsl": {
    "h": 85.532,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.50711,
    "c": 0.1273,
    "h": 130.7
  },
  "luminance": 0.13811
}

Semantic roles & 50–950 ramp

primary
#4B7315
secondary
#6A3BA9
accent
#3CEC87
background
#F8F9F5
surface
#EFF2E9
border
#CACCC5
text
#0B0E04
muted
#7C7E79

Preview Lab

Preview with #4B7315

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

Preview Lab → · Contrast checker → · Palette generator →

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