#6B7F12#6B7F12

#6B7F12 is a mid, vivid yellow-green. Relative luminance 0.183; OKLCH L 56.1% C 0.127 H 120.4°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#6B7F12
RGBrgb(107, 127, 18)
HSLhsl(71, 75%, 28%)
HSVhsv(71, 86%, 50%)
CMYKcmyk(15.7%, 0%, 85.8%, 50.2%)
CIE-LABlab(49.92, -21.57, 50.74)
CIE-LCHlch(49.92, 55.13, 113.03°)
OKLaboklab(56.09% -0.0645 0.11)
OKLCHoklch(56.09% 0.127 120.4)
XYZxyz(13.7622, 18.3483, 3.3887)
Luminance0.1835 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B7F12 #26127F
analogous
#7F5C12 #6B7F12 #347F12
triadic
#6B7F12 #126B7F #7F126B
tetradic
#6B7F12 #127F5C #26127F #7F1234
square
#6B7F12 #127F5C #26127F #7F1234
split-complementary
#6B7F12 #12347F #5C127F
monochromatic
#171B04 #3E490A #6B7F12 #98B51A #BFE12B

Accessibility & contrast

On white

4.50
#6B7F12 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#6B7F12 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6B7F12
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B7F12#FFFFFF#000000##000000
##6B7F121.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#887700
Deuteranopia (green-blind)
#85771E
Tritanopia (blue-blind)
#72786C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #6b7f12;
/* rgb */ color: rgb(107, 127, 18);
/* oklch */ color: oklch(56.1% 0.127 120.4);
Tailwind
colors: {
  custom: {
    50: '#99a45d',
    500: '#6b7f12',
    950: '#000000',
  },
}
SCSS
$custom: #6b7f12;
$custom-light: #99a45d;
$custom-dark: #000000;
JSON
{
  "hex": "#6b7f12",
  "rgb": {
    "r": 107,
    "g": 127,
    "b": 18
  },
  "hsl": {
    "h": 71.009,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.56091,
    "c": 0.12748,
    "h": 120.4
  },
  "luminance": 0.18348
}

Semantic roles & 50–950 ramp

primary
#6B7F12
secondary
#4F38B5
accent
#36F258
background
#F9FAF5
surface
#F2F4E9
border
#CCCEC5
text
#0E0F05
muted
#7E7F79

Preview Lab

Preview with #6B7F12

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

Preview Lab → · Contrast checker → · Palette generator →

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