#6B871F#6B871F

#6B871F is a mid, vivid yellow-green. Relative luminance 0.206; OKLCH L 58.2% C 0.131 H 123.9°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#6B871F
RGBrgb(107, 135, 31)
HSLhsl(76, 63%, 33%)
HSVhsv(76, 77%, 53%)
CMYKcmyk(20.7%, 0%, 77%, 47.1%)
CIE-LABlab(52.46, -25.02, 49.01)
CIE-LCHlch(52.46, 55.03, 117.04°)
OKLaboklab(58.16% -0.073 0.1086)
OKLCHoklch(58.16% 0.131 123.9)
XYZxyz(14.9749, 20.5526, 4.4742)
Luminance0.2055 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B871F #3B1F87
analogous
#876F1F #6B871F #37871F
triadic
#6B871F #1F6B87 #871F6B
tetradic
#6B871F #1F876F #3B1F87 #871F37
square
#6B871F #1F876F #3B1F87 #871F37
split-complementary
#6B871F #1F3787 #6F1F87
monochromatic
#1C2308 #445514 #6B871F #92B92A #B0D64B

Accessibility & contrast

On white

4.11
#6B871F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#6B871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6B871F
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B871F#FFFFFF#000000##000000
##6B871F1.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E07
Deuteranopia (green-blind)
#8B7D29
Tritanopia (blue-blind)
#708073
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #6b871f;
/* rgb */ color: rgb(107, 135, 31);
/* oklch */ color: oklch(58.2% 0.131 123.9);
Tailwind
colors: {
  custom: {
    50: '#99aa63',
    500: '#6b871f',
    950: '#000000',
  },
}
SCSS
$custom: #6b871f;
$custom-light: #99aa63;
$custom-dark: #000000;
JSON
{
  "hex": "#6b871f",
  "rgb": {
    "r": 107,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 76.154,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.58164,
    "c": 0.13082,
    "h": 123.9
  },
  "luminance": 0.20553
}

Semantic roles & 50–950 ramp

primary
#6B871F
secondary
#674AB8
accent
#42E66E
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1006
muted
#7E7F7A

Preview Lab

Preview with #6B871F

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

Preview Lab → · Contrast checker → · Palette generator →

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