#6A781F#6A781F

#6A781F is a mid, moderate yellow. Relative luminance 0.166; OKLCH L 54.3% C 0.112 H 118.1°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#6A781F
RGBrgb(106, 120, 31)
HSLhsl(69, 59%, 30%)
HSVhsv(69, 74%, 47%)
CMYKcmyk(11.7%, 0%, 74.2%, 52.9%)
CIE-LABlab(47.75, -17.77, 44.44)
CIE-LCHlch(47.75, 47.86, 111.79°)
OKLaboklab(54.35% -0.0529 0.099)
OKLCHoklch(54.35% 0.112 118.1)
XYZxyz(12.9079, 16.5962, 3.8194)
Luminance0.1660 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6A781F #2D1F78
analogous
#785A1F #6A781F #3E781F
triadic
#6A781F #1F6A78 #781F6A
tetradic
#6A781F #1F785A #2D1F78 #781F3E
square
#6A781F #1F785A #2D1F78 #781F3E
split-complementary
#6A781F #1F3E78 #5A1F78
monochromatic
#151806 #3F4712 #6A781F #95A92C #B8CE43

Accessibility & contrast

On white

4.86
#6A781F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#6A781F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6A781F
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6A781F#FFFFFF#000000##FFFFFF
##6A781F1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80710F
Deuteranopia (green-blind)
#7F7226
Tritanopia (blue-blind)
#717167
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #6a781f;
/* rgb */ color: rgb(106, 120, 31);
/* oklch */ color: oklch(54.3% 0.112 118.1);
Tailwind
colors: {
  custom: {
    50: '#979e61',
    500: '#6a781f',
    950: '#000000',
  },
}
SCSS
$custom: #6a781f;
$custom-light: #979e61;
$custom-dark: #000000;
JSON
{
  "hex": "#6a781f",
  "rgb": {
    "r": 106,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 69.438,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.54346,
    "c": 0.11226,
    "h": 118.1
  },
  "luminance": 0.16596
}

Semantic roles & 50–950 ramp

primary
#6A781F
secondary
#5747AB
accent
#46E25E
background
#F9F9F6
surface
#F2F2EB
border
#CCCCC6
text
#0E0E05
muted
#7E7E7A

Preview Lab

Preview with #6A781F

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

Preview Lab → · Contrast checker → · Palette generator →

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