#787F1F#787F1F

#787F1F is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.2% C 0.116 H 113.7°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#787F1F
RGBrgb(120, 127, 31)
HSLhsl(64, 61%, 31%)
HSVhsv(64, 76%, 50%)
CMYKcmyk(5.5%, 0%, 75.6%, 50.2%)
CIE-LABlab(51.00, -15.15, 47.97)
CIE-LCHlch(51.00, 50.31, 107.52°)
OKLaboklab(57.24% -0.0465 0.106)
OKLCHoklch(57.24% 0.116 113.7)
XYZxyz(15.5829, 19.2711, 4.1949)
Luminance0.1927 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F1F #261F7F
analogous
#7F561F #787F1F #487F1F
triadic
#787F1F #1F787F #7F1F78
tetradic
#787F1F #1F7F56 #261F7F #7F1F48
square
#787F1F #1F7F56 #261F7F #7F1F48
split-complementary
#787F1F #1F487F #561F7F
monochromatic
#1B1D07 #4A4E13 #787F1F #A6B02B #C8D246

Accessibility & contrast

On white

4.33
#787F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#787F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787F1F
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787F1F#FFFFFF#000000##000000
##787F1F1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#89790B
Deuteranopia (green-blind)
#897A27
Tritanopia (blue-blind)
#80776D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787f1f;
/* rgb */ color: rgb(120, 127, 31);
/* oklch */ color: oklch(57.2% 0.116 113.7);
Tailwind
colors: {
  custom: {
    50: '#a2a462',
    500: '#787f1f',
    950: '#000000',
  },
}
SCSS
$custom: #787f1f;
$custom-light: #a2a462;
$custom-dark: #000000;
JSON
{
  "hex": "#787f1f",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 31
  },
  "hsl": {
    "h": 64.375,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.57242,
    "c": 0.11575,
    "h": 113.7
  },
  "luminance": 0.19271
}

Semantic roles & 50–950 ramp

primary
#787F1F
secondary
#5048B2
accent
#44E450
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F05
muted
#7F7F7A

Preview Lab

Preview with #787F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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