#6B781B#6B781B

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

Color values

HEX#6B781B
RGBrgb(107, 120, 27)
HSLhsl(68, 63%, 29%)
HSVhsv(68, 78%, 47%)
CMYKcmyk(10.8%, 0%, 77.5%, 52.9%)
CIE-LABlab(47.80, -17.53, 46.02)
CIE-LCHlch(47.80, 49.25, 110.86°)
OKLaboklab(54.4% -0.0527 0.1016)
OKLCHoklch(54.4% 0.114 117.4)
XYZxyz(12.9780, 16.6380, 3.5645)
Luminance0.1664 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B781B #281B78
analogous
#78571B #6B781B #3D781B
triadic
#6B781B #1B6B78 #781B6B
tetradic
#6B781B #1B7857 #281B78 #781B3D
square
#6B781B #1B7857 #281B78 #781B3D
split-complementary
#6B781B #1B3D78 #571B78
monochromatic
#161906 #3E4610 #6B781B #98AA26 #BED33B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6B781B#FFFFFF#000000##FFFFFF
##6B781B1.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)
#817106
Deuteranopia (green-blind)
#7F7223
Tritanopia (blue-blind)
#727166
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #6b781b;
/* rgb */ color: rgb(107, 120, 27);
/* oklch */ color: oklch(54.4% 0.114 117.4);
Tailwind
colors: {
  custom: {
    50: '#989e5f',
    500: '#6b781b',
    950: '#000000',
  },
}
SCSS
$custom: #6b781b;
$custom-light: #989e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#6b781b",
  "rgb": {
    "r": 107,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 68.387,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.54401,
    "c": 0.11444,
    "h": 117.4
  },
  "luminance": 0.16638
}

Semantic roles & 50–950 ramp

primary
#6B781B
secondary
#5143AC
accent
#41E659
background
#F9F9F5
surface
#F2F2EA
border
#CCCCC6
text
#0E0E05
muted
#7E7E79

Preview Lab

Preview with #6B781B

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

Preview Lab → · Contrast checker → · Palette generator →

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