#6A871F#6A871F

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

Color values

HEX#6A871F
RGBrgb(106, 135, 31)
HSLhsl(77, 63%, 33%)
HSVhsv(77, 77%, 53%)
CMYKcmyk(21.5%, 0%, 77%, 47.1%)
CIE-LABlab(52.39, -25.45, 48.92)
CIE-LCHlch(52.39, 55.14, 117.48°)
OKLaboklab(58.09% -0.0741 0.1084)
OKLCHoklch(58.09% 0.131 124.3)
XYZxyz(14.8553, 20.4909, 4.4686)
Luminance0.2049 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A871F #3C1F87
analogous
#87701F #6A871F #36871F
triadic
#6A871F #1F6A87 #871F6A
tetradic
#6A871F #1F8770 #3C1F87 #871F36
square
#6A871F #1F8770 #3C1F87 #871F36
split-complementary
#6A871F #1F3687 #701F87
monochromatic
#1C2308 #435514 #6A871F #91B92A #AFD64B

Accessibility & contrast

On white

4.12
#6A871F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#6A871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6A871F
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A871F#FFFFFF#000000##000000
##6A871F1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6a871f;
/* rgb */ color: rgb(106, 135, 31);
/* oklch */ color: oklch(58.1% 0.131 124.3);
Tailwind
colors: {
  custom: {
    50: '#98aa63',
    500: '#6a871f',
    950: '#000000',
  },
}
SCSS
$custom: #6a871f;
$custom-light: #98aa63;
$custom-dark: #000000;
JSON
{
  "hex": "#6a871f",
  "rgb": {
    "r": 106,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 76.731,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.58091,
    "c": 0.13131,
    "h": 124.3
  },
  "luminance": 0.20491
}

Semantic roles & 50–950 ramp

primary
#6A871F
secondary
#684AB8
accent
#42E670
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E1006
muted
#7E7F7A

Preview Lab

Preview with #6A871F

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

Preview Lab → · Contrast checker → · Palette generator →

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