#6B781A#6B781A

#6B781A is a mid, moderate yellow. Relative luminance 0.166; OKLCH L 54.4% C 0.115 H 117.4°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#6B781A
RGBrgb(107, 120, 26)
HSLhsl(68, 64%, 29%)
HSVhsv(68, 78%, 47%)
CMYKcmyk(10.8%, 0%, 78.3%, 52.9%)
CIE-LABlab(47.79, -17.58, 46.37)
CIE-LCHlch(47.79, 49.59, 110.77°)
OKLaboklab(54.39% -0.053 0.1021)
OKLCHoklch(54.39% 0.115 117.4)
XYZxyz(12.9666, 16.6335, 3.5046)
Luminance0.1663 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B781A #271A78
analogous
#78561A #6B781A #3C781A
triadic
#6B781A #1A6B78 #781A6B
tetradic
#6B781A #1A7856 #271A78 #781A3C
square
#6B781A #1A7856 #271A78 #781A3C
split-complementary
#6B781A #1A3C78 #561A78
monochromatic
#161905 #3E460F #6B781A #98AA25 #BED438

Accessibility & contrast

On white

4.85
#6B781A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#6B781A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B781A
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B781A#FFFFFF#000000##FFFFFF
##6B781A1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817104
Deuteranopia (green-blind)
#7F7222
Tritanopia (blue-blind)
#727166
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #6b781a;
/* rgb */ color: rgb(107, 120, 26);
/* oklch */ color: oklch(54.4% 0.115 117.4);
Tailwind
colors: {
  custom: {
    50: '#989e5f',
    500: '#6b781a',
    950: '#000000',
  },
}
SCSS
$custom: #6b781a;
$custom-light: #989e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#6b781a",
  "rgb": {
    "r": 107,
    "g": 120,
    "b": 26
  },
  "hsl": {
    "h": 68.298,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.54394,
    "c": 0.11504,
    "h": 117.4
  },
  "luminance": 0.16633
}

Semantic roles & 50–950 ramp

primary
#6B781A
secondary
#5041AC
accent
#40E758
background
#F9F9F5
surface
#F2F2EA
border
#CCCCC6
text
#0E0E05
muted
#7E7E79

Preview Lab

Preview with #6B781A

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

Preview Lab → · Contrast checker → · Palette generator →

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