#6B841F#6B841F

#6B841F is a mid, vivid yellow-green. Relative luminance 0.197; OKLCH L 57.4% C 0.127 H 122.8°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#6B841F
RGBrgb(107, 132, 31)
HSLhsl(75, 62%, 32%)
HSVhsv(75, 77%, 52%)
CMYKcmyk(18.9%, 0%, 76.5%, 48.2%)
CIE-LABlab(51.53, -23.52, 48.13)
CIE-LCHlch(51.53, 53.57, 116.05°)
OKLaboklab(57.41% -0.0688 0.1067)
OKLCHoklch(57.41% 0.127 122.8)
XYZxyz(14.5622, 19.7272, 4.3366)
Luminance0.1973 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B841F #381F84
analogous
#846A1F #6B841F #39841F
triadic
#6B841F #1F6B84 #841F6B
tetradic
#6B841F #1F846A #381F84 #841F39
square
#6B841F #1F846A #381F84 #841F39
split-complementary
#6B841F #1F3984 #6A1F84
monochromatic
#1B2108 #435213 #6B841F #93B62B #B2D449

Accessibility & contrast

On white

4.25
#6B841F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#6B841F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6B841F
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B841F#FFFFFF#000000##000000
##6B841F1.004.254.954.95
#FFFFFF4.251.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7B09
Deuteranopia (green-blind)
#897B28
Tritanopia (blue-blind)
#717D71
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #6b841f;
/* rgb */ color: rgb(107, 132, 31);
/* oklch */ color: oklch(57.4% 0.127 122.8);
Tailwind
colors: {
  custom: {
    50: '#98a763',
    500: '#6b841f',
    950: '#000000',
  },
}
SCSS
$custom: #6b841f;
$custom-light: #98a763;
$custom-dark: #000000;
JSON
{
  "hex": "#6b841f",
  "rgb": {
    "r": 107,
    "g": 132,
    "b": 31
  },
  "hsl": {
    "h": 74.851,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.57413,
    "c": 0.127,
    "h": 122.8
  },
  "luminance": 0.19727
}

Semantic roles & 50–950 ramp

primary
#6B841F
secondary
#6348B7
accent
#43E56B
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0E0F06
muted
#7E7F7A

Preview Lab

Preview with #6B841F

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

Preview Lab → · Contrast checker → · Palette generator →

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