#6C781F#6C781F

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

Color values

HEX#6C781F
RGBrgb(108, 120, 31)
HSLhsl(68, 59%, 30%)
HSVhsv(68, 74%, 47%)
CMYKcmyk(10%, 0%, 74.2%, 52.9%)
CIE-LABlab(47.91, -16.86, 44.65)
CIE-LCHlch(47.91, 47.73, 110.69°)
OKLaboklab(54.51% -0.0505 0.0994)
OKLCHoklch(54.51% 0.111 117)
XYZxyz(13.1484, 16.7202, 3.8307)
Luminance0.1672 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C781F #2B1F78
analogous
#78581F #6C781F #40781F
triadic
#6C781F #1F6C78 #781F6C
tetradic
#6C781F #1F7858 #2B1F78 #781F40
square
#6C781F #1F7858 #2B1F78 #781F40
split-complementary
#6C781F #1F4078 #581F78
monochromatic
#161806 #404712 #6C781F #98A92C #BCCE43

Accessibility & contrast

On white

4.83
#6C781F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#6C781F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C781F
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C781F#FFFFFF#000000##FFFFFF
##6C781F1.004.834.344.83
#FFFFFF4.831.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#81710F
Deuteranopia (green-blind)
#7F7226
Tritanopia (blue-blind)
#737167
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #6c781f;
/* rgb */ color: rgb(108, 120, 31);
/* oklch */ color: oklch(54.5% 0.111 117.0);
Tailwind
colors: {
  custom: {
    50: '#999e61',
    500: '#6c781f',
    950: '#000000',
  },
}
SCSS
$custom: #6c781f;
$custom-light: #999e61;
$custom-dark: #000000;
JSON
{
  "hex": "#6c781f",
  "rgb": {
    "r": 108,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 68.09,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.54513,
    "c": 0.11149,
    "h": 117
  },
  "luminance": 0.1672
}

Semantic roles & 50–950 ramp

primary
#6C781F
secondary
#5547AB
accent
#46E25B
background
#F9F9F6
surface
#F2F2EB
border
#CCCCC6
text
#0E0E05
muted
#7E7E7A

Preview Lab

Preview with #6C781F

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

Preview Lab → · Contrast checker → · Palette generator →

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