#787F28#787F28

#787F28 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#787F28
RGBrgb(120, 127, 40)
HSLhsl(65, 52%, 33%)
HSVhsv(65, 69%, 50%)
CMYKcmyk(5.5%, 0%, 68.5%, 50.2%)
CIE-LABlab(51.07, -14.63, 44.45)
CIE-LCHlch(51.07, 46.79, 108.22°)
OKLaboklab(57.31% -0.0441 0.1002)
OKLCHoklch(57.31% 0.109 113.8)
XYZxyz(15.7185, 19.3253, 4.9092)
Luminance0.1933 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F28 #2F287F
analogous
#7F5B28 #787F28 #4C7F28
triadic
#787F28 #28787F #7F2878
tetradic
#787F28 #287F5B #2F287F #7F284C
square
#787F28 #287F5B #2F287F #7F284C
split-complementary
#787F28 #284C7F #5B287F
monochromatic
#20220B #4C5019 #787F28 #A4AE37 #C1CA57

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787F28#FFFFFF#000000##000000
##787F281.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)
#88791C
Deuteranopia (green-blind)
#887A2E
Tritanopia (blue-blind)
#80776D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #787f28;
/* rgb */ color: rgb(120, 127, 40);
/* oklch */ color: oklch(57.3% 0.109 113.8);
Tailwind
colors: {
  custom: {
    50: '#a1a467',
    500: '#787f28',
    950: '#000000',
  },
}
SCSS
$custom: #787f28;
$custom-light: #a1a467;
$custom-dark: #000000;
JSON
{
  "hex": "#787f28",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 40
  },
  "hsl": {
    "h": 64.828,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.57312,
    "c": 0.10945,
    "h": 113.8
  },
  "luminance": 0.19325
}

Semantic roles & 50–950 ramp

primary
#787F28
secondary
#5B54AF
accent
#4CDC58
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #787F28

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

Preview Lab → · Contrast checker → · Palette generator →

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