#4A5F0C#4A5F0C

#4A5F0C is a mid, moderate yellow-green. Relative luminance 0.097; OKLCH L 45.2% C 0.106 H 123.8°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#4A5F0C
RGBrgb(74, 95, 12)
HSLhsl(75, 78%, 21%)
HSVhsv(75, 87%, 37%)
CMYKcmyk(22.1%, 0%, 87.4%, 62.7%)
CIE-LABlab(37.24, -20.06, 40.41)
CIE-LCHlch(37.24, 45.12, 116.40°)
OKLaboklab(45.22% -0.0589 0.0881)
OKLCHoklch(45.22% 0.106 123.8)
XYZxyz(6.9827, 9.6668, 1.8458)
Luminance0.0967 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A5F0C #210C5F
analogous
#5F4A0C #4A5F0C #205F0C
triadic
#4A5F0C #0C4A5F #5F0C4A
tetradic
#4A5F0C #0C5F4A #210C5F #5F0C20
square
#4A5F0C #0C5F4A #210C5F #5F0C20
split-complementary
#4A5F0C #0C205F #4A0C5F
monochromatic
#151B03 #202905 #4A5F0C #749513 #9FCC1A

Accessibility & contrast

On white

7.16
#4A5F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#4A5F0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A5F0C
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A5F0C#FFFFFF#000000##FFFFFF
##4A5F0C1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#655800
Deuteranopia (green-blind)
#625715
Tritanopia (blue-blind)
#4E5A50
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4a5f0c;
/* rgb */ color: rgb(74, 95, 12);
/* oklch */ color: oklch(45.2% 0.106 123.8);
Tailwind
colors: {
  custom: {
    50: '#808c54',
    500: '#4a5f0c',
    950: '#000000',
  },
}
SCSS
$custom: #4a5f0c;
$custom-light: #808c54;
$custom-dark: #000000;
JSON
{
  "hex": "#4a5f0c",
  "rgb": {
    "r": 74,
    "g": 95,
    "b": 12
  },
  "hsl": {
    "h": 75.181,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.45215,
    "c": 0.10595,
    "h": 123.8
  },
  "luminance": 0.09667
}

Semantic roles & 50–950 ramp

primary
#4A5F0C
secondary
#492D99
accent
#34F464
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0A0C03
muted
#7C7D78

Preview Lab

Preview with #4A5F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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