#6D781B#6D781B

#6D781B is a mid, moderate yellow. Relative luminance 0.168; OKLCH L 54.6% C 0.114 H 116.3°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#6D781B
RGBrgb(109, 120, 27)
HSLhsl(67, 63%, 29%)
HSVhsv(67, 78%, 47%)
CMYKcmyk(9.2%, 0%, 77.5%, 52.9%)
CIE-LABlab(47.96, -16.62, 46.23)
CIE-LCHlch(47.96, 49.13, 109.78°)
OKLaboklab(54.57% -0.0503 0.1019)
OKLCHoklch(54.57% 0.114 116.3)
XYZxyz(13.2213, 16.7635, 3.5759)
Luminance0.1676 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D781B #261B78
analogous
#78551B #6D781B #3F781B
triadic
#6D781B #1B6D78 #781B6D
tetradic
#6D781B #1B7855 #261B78 #781B3F
square
#6D781B #1B7855 #261B78 #781B3F
split-complementary
#6D781B #1B3F78 #551B78
monochromatic
#171906 #404610 #6D781B #9AAA26 #C1D33B

Accessibility & contrast

On white

4.82
#6D781B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#6D781B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D781B
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D781B#FFFFFF#000000##FFFFFF
##6D781B1.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817106
Deuteranopia (green-blind)
#807223
Tritanopia (blue-blind)
#747166
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #6d781b;
/* rgb */ color: rgb(109, 120, 27);
/* oklch */ color: oklch(54.6% 0.114 116.3);
Tailwind
colors: {
  custom: {
    50: '#9a9e5f',
    500: '#6d781b',
    950: '#000000',
  },
}
SCSS
$custom: #6d781b;
$custom-light: #9a9e5f;
$custom-dark: #000000;
JSON
{
  "hex": "#6d781b",
  "rgb": {
    "r": 109,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 67.097,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.54569,
    "c": 0.11369,
    "h": 116.3
  },
  "luminance": 0.16763
}

Semantic roles & 50–950 ramp

primary
#6D781B
secondary
#4F43AC
accent
#41E655
background
#F9F9F5
surface
#F2F2EA
border
#CCCCC6
text
#0E0E05
muted
#7E7E79

Preview Lab

Preview with #6D781B

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

Preview Lab → · Contrast checker → · Palette generator →

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