#6B771F#6B771F

#6B771F is a mid, moderate yellow. Relative luminance 0.164; OKLCH L 54.2% C 0.111 H 117.0°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#6B771F
RGBrgb(107, 119, 31)
HSLhsl(68, 59%, 29%)
HSVhsv(68, 74%, 47%)
CMYKcmyk(10.1%, 0%, 73.9%, 53.3%)
CIE-LABlab(47.52, -16.78, 44.24)
CIE-LCHlch(47.52, 47.32, 110.77°)
OKLaboklab(54.18% -0.0503 0.0986)
OKLCHoklch(54.18% 0.111 117)
XYZxyz(12.9079, 16.4185, 3.7852)
Luminance0.1642 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B771F #2B1F77
analogous
#77571F #6B771F #3F771F
triadic
#6B771F #1F6B77 #771F6B
tetradic
#6B771F #1F7757 #2B1F77 #771F3F
square
#6B771F #1F7757 #2B1F77 #771F3F
split-complementary
#6B771F #1F3F77 #571F77
monochromatic
#161806 #3F4612 #6B771F #97A82C #BBCE43

Accessibility & contrast

On white

4.90
#6B771F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#6B771F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B771F
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B771F#FFFFFF#000000##FFFFFF
##6B771F1.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F700F
Deuteranopia (green-blind)
#7E7126
Tritanopia (blue-blind)
#727066
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #6b771f;
/* rgb */ color: rgb(107, 119, 31);
/* oklch */ color: oklch(54.2% 0.111 117.0);
Tailwind
colors: {
  custom: {
    50: '#989e61',
    500: '#6b771f',
    950: '#000000',
  },
}
SCSS
$custom: #6b771f;
$custom-light: #989e61;
$custom-dark: #000000;
JSON
{
  "hex": "#6b771f",
  "rgb": {
    "r": 107,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 68.182,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.54183,
    "c": 0.11063,
    "h": 117
  },
  "luminance": 0.16418
}

Semantic roles & 50–950 ramp

primary
#6B771F
secondary
#5547AB
accent
#46E25B
background
#F9F9F5
surface
#F2F2EA
border
#CCCCC6
text
#0E0E05
muted
#7E7E79

Preview Lab

Preview with #6B771F

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

Preview Lab → · Contrast checker → · Palette generator →

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