#6B8012#6B8012

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

Color values

HEX#6B8012
RGBrgb(107, 128, 18)
HSLhsl(71, 75%, 29%)
HSVhsv(71, 86%, 50%)
CMYKcmyk(16.4%, 0%, 85.9%, 49.8%)
CIE-LABlab(50.23, -22.08, 51.00)
CIE-LCHlch(50.23, 55.58, 113.40°)
OKLaboklab(56.34% -0.0659 0.1105)
OKLCHoklch(56.34% 0.129 120.8)
XYZxyz(13.8920, 18.6078, 3.4320)
Luminance0.1861 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B8012 #271280
analogous
#805E12 #6B8012 #348012
triadic
#6B8012 #126B80 #80126B
tetradic
#6B8012 #12805E #271280 #801234
square
#6B8012 #12805E #271280 #801234
split-complementary
#6B8012 #123480 #5E1280
monochromatic
#161B04 #3E4A0A #6B8012 #98B61A #BEE12B

Accessibility & contrast

On white

4.45
#6B8012 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#6B8012 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6B8012
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B8012#FFFFFF#000000##000000
##6B80121.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#86781F
Tritanopia (blue-blind)
#72796D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #6b8012;
/* rgb */ color: rgb(107, 128, 18);
/* oklch */ color: oklch(56.3% 0.129 120.8);
Tailwind
colors: {
  custom: {
    50: '#99a45d',
    500: '#6b8012',
    950: '#000000',
  },
}
SCSS
$custom: #6b8012;
$custom-light: #99a45d;
$custom-dark: #000000;
JSON
{
  "hex": "#6b8012",
  "rgb": {
    "r": 107,
    "g": 128,
    "b": 18
  },
  "hsl": {
    "h": 71.455,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.5634,
    "c": 0.12869,
    "h": 120.8
  },
  "luminance": 0.18608
}

Semantic roles & 50–950 ramp

primary
#6B8012
secondary
#5038B6
accent
#36F25A
background
#F9FAF5
surface
#F2F4E9
border
#CCCEC5
text
#0E0F05
muted
#7E7F79

Preview Lab

Preview with #6B8012

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

Preview Lab → · Contrast checker → · Palette generator →

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