#486212#486212

#486212 is a mid, moderate yellow-green. Relative luminance 0.102; OKLCH L 45.9% C 0.108 H 126.5°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#486212
RGBrgb(72, 98, 18)
HSLhsl(80, 69%, 23%)
HSVhsv(80, 82%, 38%)
CMYKcmyk(26.5%, 0%, 81.6%, 61.6%)
CIE-LABlab(38.12, -22.22, 39.21)
CIE-LCHlch(38.12, 45.07, 119.54°)
OKLaboklab(45.91% -0.0642 0.0867)
OKLCHoklch(45.91% 0.108 126.5)
XYZxyz(7.1494, 10.1566, 2.1559)
Luminance0.1016 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#486212 #2C1262
analogous
#625412 #486212 #206212
triadic
#486212 #124862 #621248
tetradic
#486212 #126254 #2C1262 #621220
square
#486212 #126254 #2C1262 #621220
split-complementary
#486212 #122062 #541262
monochromatic
#131A05 #222E09 #486212 #6E961B #94C925

Accessibility & contrast

On white

6.93
#486212 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#486212 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #486212
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##486212#FFFFFF#000000##FFFFFF
##4862121.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685B01
Deuteranopia (green-blind)
#64591A
Tritanopia (blue-blind)
#4B5D53
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #486212;
/* rgb */ color: rgb(72, 98, 18);
/* oklch */ color: oklch(45.9% 0.108 126.5);
Tailwind
colors: {
  custom: {
    50: '#7e8e57',
    500: '#486212',
    950: '#000000',
  },
}
SCSS
$custom: #486212;
$custom-light: #7e8e57;
$custom-dark: #000000;
JSON
{
  "hex": "#486212",
  "rgb": {
    "r": 72,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 79.5,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.45905,
    "c": 0.10785,
    "h": 126.5
  },
  "luminance": 0.10157
}

Semantic roles & 50–950 ramp

primary
#486212
secondary
#56369A
accent
#3CEC75
background
#F7F8F5
surface
#EEF0E9
border
#C9CBC5
text
#0A0C03
muted
#7C7D78

Preview Lab

Preview with #486212

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

Preview Lab → · Contrast checker → · Palette generator →

#486212 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva