#6B871B#6B871B

#6B871B is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 58.1% C 0.133 H 123.7°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#6B871B
RGBrgb(107, 135, 27)
HSLhsl(76, 67%, 32%)
HSVhsv(76, 80%, 53%)
CMYKcmyk(20.7%, 0%, 80%, 47.1%)
CIE-LABlab(52.43, -25.22, 50.34)
CIE-LCHlch(52.43, 56.31, 116.61°)
OKLaboklab(58.14% -0.0738 0.1107)
OKLCHoklch(58.14% 0.133 123.7)
XYZxyz(14.9254, 20.5328, 4.2136)
Luminance0.2053 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B871B #371B87
analogous
#876D1B #6B871B #35871B
triadic
#6B871B #1B6B87 #871B6B
tetradic
#6B871B #1B876D #371B87 #871B35
square
#6B871B #1B876D #371B87 #871B35
split-complementary
#6B871B #1B3587 #6D1B87
monochromatic
#1A2107 #435411 #6B871B #93BA25 #B2D943

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6B871B#FFFFFF#000000##000000
##6B871B1.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)
#8F7E00
Deuteranopia (green-blind)
#8B7D26
Tritanopia (blue-blind)
#718073
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #6b871b;
/* rgb */ color: rgb(107, 135, 27);
/* oklch */ color: oklch(58.1% 0.133 123.7);
Tailwind
colors: {
  custom: {
    50: '#99aa61',
    500: '#6b871b',
    950: '#000000',
  },
}
SCSS
$custom: #6b871b;
$custom-light: #99aa61;
$custom-dark: #000000;
JSON
{
  "hex": "#6b871b",
  "rgb": {
    "r": 107,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 75.556,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.58139,
    "c": 0.13306,
    "h": 123.7
  },
  "luminance": 0.20533
}

Semantic roles & 50–950 ramp

primary
#6B871B
secondary
#6244BA
accent
#3EEA6B
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1005
muted
#7E7F7A

Preview Lab

Preview with #6B871B

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

Preview Lab → · Contrast checker → · Palette generator →

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