#4A6212#4A6212

#4A6212 is a mid, moderate yellow-green. Relative luminance 0.102; OKLCH L 46.1% C 0.107 H 125.4°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#4A6212
RGBrgb(74, 98, 18)
HSLhsl(78, 69%, 23%)
HSVhsv(78, 82%, 38%)
CMYKcmyk(24.5%, 0%, 81.6%, 61.6%)
CIE-LABlab(38.26, -21.34, 39.39)
CIE-LCHlch(38.26, 44.79, 118.45°)
OKLaboklab(46.05% -0.0619 0.087)
OKLCHoklch(46.05% 0.107 125.4)
XYZxyz(7.3010, 10.2348, 2.1630)
Luminance0.1023 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A6212 #2A1262
analogous
#625212 #4A6212 #226212
triadic
#4A6212 #124A62 #62124A
tetradic
#4A6212 #126252 #2A1262 #621222
square
#4A6212 #126252 #2A1262 #621222
split-complementary
#4A6212 #122262 #521262
monochromatic
#141A05 #232E09 #4A6212 #71961B #98C925

Accessibility & contrast

On white

6.89
#4A6212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#4A6212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A6212
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A6212#FFFFFF#000000##FFFFFF
##4A62121.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685B01
Deuteranopia (green-blind)
#655A1A
Tritanopia (blue-blind)
#4E5D53
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4a6212;
/* rgb */ color: rgb(74, 98, 18);
/* oklch */ color: oklch(46.1% 0.107 125.4);
Tailwind
colors: {
  custom: {
    50: '#7f8e57',
    500: '#4a6212',
    950: '#000000',
  },
}
SCSS
$custom: #4a6212;
$custom-light: #7f8e57;
$custom-dark: #000000;
JSON
{
  "hex": "#4a6212",
  "rgb": {
    "r": 74,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 78,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.46053,
    "c": 0.10676,
    "h": 125.4
  },
  "luminance": 0.10235
}

Semantic roles & 50–950 ramp

primary
#4A6212
secondary
#54369A
accent
#3CEC71
background
#F8F8F5
surface
#EFF0E9
border
#CACBC5
text
#0A0C03
muted
#7C7D78

Preview Lab

Preview with #4A6212

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

Preview Lab → · Contrast checker → · Palette generator →

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