#787F29#787F29

#787F29 is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.109 H 113.8°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#787F29
RGBrgb(120, 127, 41)
HSLhsl(65, 51%, 33%)
HSVhsv(65, 68%, 50%)
CMYKcmyk(5.5%, 0%, 67.7%, 50.2%)
CIE-LABlab(51.07, -14.56, 44.02)
CIE-LCHlch(51.07, 46.37, 108.30°)
OKLaboklab(57.32% -0.0438 0.0994)
OKLCHoklch(57.32% 0.109 113.8)
XYZxyz(15.7358, 19.3322, 4.9999)
Luminance0.1933 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F29 #30297F
analogous
#7F5B29 #787F29 #4D7F29
triadic
#787F29 #29787F #7F2978
tetradic
#787F29 #297F5B #30297F #7F294D
square
#787F29 #297F5B #30297F #7F294D
split-complementary
#787F29 #294D7F #5B297F
monochromatic
#21220B #4C511A #787F29 #A4AD38 #C0C959

Accessibility & contrast

On white

4.32
#787F29 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#787F29 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787F29
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787F29#FFFFFF#000000##000000
##787F291.004.324.874.87
#FFFFFF4.321.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#88791D
Deuteranopia (green-blind)
#887B2F
Tritanopia (blue-blind)
#80776D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #787f29;
/* rgb */ color: rgb(120, 127, 41);
/* oklch */ color: oklch(57.3% 0.109 113.8);
Tailwind
colors: {
  custom: {
    50: '#a1a468',
    500: '#787f29',
    950: '#000000',
  },
}
SCSS
$custom: #787f29;
$custom-light: #a1a468;
$custom-dark: #000000;
JSON
{
  "hex": "#787f29",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 41
  },
  "hsl": {
    "h": 64.884,
    "s": 51.19,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57321,
    "c": 0.10868,
    "h": 113.8
  },
  "luminance": 0.19332
}

Semantic roles & 50–950 ramp

primary
#787F29
secondary
#5C55AF
accent
#4DDB59
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #787F29

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

Preview Lab → · Contrast checker → · Palette generator →

#787F29 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva