#6A8012#6A8012

#6A8012 is a mid, vivid yellow-green. Relative luminance 0.185; OKLCH L 56.3% C 0.129 H 121.3°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#6A8012
RGBrgb(106, 128, 18)
HSLhsl(72, 75%, 29%)
HSVhsv(72, 86%, 50%)
CMYKcmyk(17.2%, 0%, 85.9%, 49.8%)
CIE-LABlab(50.15, -22.52, 50.91)
CIE-LCHlch(50.15, 55.67, 113.86°)
OKLaboklab(56.26% -0.067 0.1104)
OKLCHoklch(56.26% 0.129 121.3)
XYZxyz(13.7725, 18.5462, 3.4264)
Luminance0.1855 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A8012 #281280
analogous
#805F12 #6A8012 #338012
triadic
#6A8012 #126A80 #80126A
tetradic
#6A8012 #12805F #281280 #801233
square
#6A8012 #12805F #281280 #801233
split-complementary
#6A8012 #123380 #5F1280
monochromatic
#161B04 #3E4A0A #6A8012 #96B61A #BDE12B

Accessibility & contrast

On white

4.46
#6A8012 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#6A8012 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6A8012
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A8012#FFFFFF#000000##000000
##6A80121.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#86771F
Tritanopia (blue-blind)
#70796D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #6a8012;
/* rgb */ color: rgb(106, 128, 18);
/* oklch */ color: oklch(56.3% 0.129 121.3);
Tailwind
colors: {
  custom: {
    50: '#98a45d',
    500: '#6a8012',
    950: '#000000',
  },
}
SCSS
$custom: #6a8012;
$custom-light: #98a45d;
$custom-dark: #000000;
JSON
{
  "hex": "#6a8012",
  "rgb": {
    "r": 106,
    "g": 128,
    "b": 18
  },
  "hsl": {
    "h": 72,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.56263,
    "c": 0.12915,
    "h": 121.3
  },
  "luminance": 0.18546
}

Semantic roles & 50–950 ramp

primary
#6A8012
secondary
#5138B6
accent
#36F25B
background
#F9FAF5
surface
#F2F4E9
border
#CCCEC5
text
#0E0F05
muted
#7E7F79

Preview Lab

Preview with #6A8012

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

Preview Lab → · Contrast checker → · Palette generator →

#6A8012 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva