#787E2F#787E2F

#787E2F is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.1% C 0.102 H 113.3°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#787E2F
RGBrgb(120, 126, 47)
HSLhsl(65, 46%, 34%)
HSVhsv(65, 63%, 49%)
CMYKcmyk(4.8%, 0%, 62.7%, 50.6%)
CIE-LABlab(50.83, -13.59, 41.06)
CIE-LCHlch(50.83, 43.25, 108.32°)
OKLaboklab(57.14% -0.0405 0.0941)
OKLCHoklch(57.14% 0.102 113.3)
XYZxyz(15.7201, 19.1203, 5.5513)
Luminance0.1912 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E2F #352F7E
analogous
#7E5D2F #787E2F #517E2F
triadic
#787E2F #2F787E #7E2F78
tetradic
#787E2F #2F7E5D #352F7E #7E2F51
square
#787E2F #2F7E5D #352F7E #7E2F51
split-complementary
#787E2F #2F517E #5D2F7E
monochromatic
#23250E #4E511E #787E2F #A2AB40 #BDC563

Accessibility & contrast

On white

4.35
#787E2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#787E2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E2F
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E2F#FFFFFF#000000##000000
##787E2F1.004.354.824.82
#FFFFFF4.351.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#877826
Deuteranopia (green-blind)
#877A34
Tritanopia (blue-blind)
#80776D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e2f;
/* rgb */ color: rgb(120, 126, 47);
/* oklch */ color: oklch(57.1% 0.102 113.3);
Tailwind
colors: {
  custom: {
    50: '#a1a36b',
    500: '#787e2f',
    950: '#000000',
  },
}
SCSS
$custom: #787e2f;
$custom-light: #a1a36b;
$custom-dark: #000000;
JSON
{
  "hex": "#787e2f",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 47
  },
  "hsl": {
    "h": 64.557,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57141,
    "c": 0.10243,
    "h": 113.3
  },
  "luminance": 0.1912
}

Semantic roles & 50–950 ramp

primary
#787E2F
secondary
#635DAC
accent
#52D55C
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #787E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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