#787E28#787E28

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

Color values

HEX#787E28
RGBrgb(120, 126, 40)
HSLhsl(64, 52%, 33%)
HSVhsv(64, 68%, 49%)
CMYKcmyk(4.8%, 0%, 68.3%, 50.6%)
CIE-LABlab(50.77, -14.09, 44.14)
CIE-LCHlch(50.77, 46.33, 107.70°)
OKLaboklab(57.07% -0.0426 0.0995)
OKLCHoklch(57.07% 0.108 113.2)
XYZxyz(15.5900, 19.0683, 4.8664)
Luminance0.1907 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E28 #2E287E
analogous
#7E5928 #787E28 #4D7E28
triadic
#787E28 #28787E #7E2878
tetradic
#787E28 #287E59 #2E287E #7E284D
square
#787E28 #287E59 #2E287E #7E284D
split-complementary
#787E28 #284D7E #59287E
monochromatic
#20210B #4C5019 #787E28 #A4AC37 #C2CA57

Accessibility & contrast

On white

4.36
#787E28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#787E28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E28
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E28#FFFFFF#000000##000000
##787E281.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#87781C
Deuteranopia (green-blind)
#877A2E
Tritanopia (blue-blind)
#80766D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e28;
/* rgb */ color: rgb(120, 126, 40);
/* oklch */ color: oklch(57.1% 0.108 113.2);
Tailwind
colors: {
  custom: {
    50: '#a1a367',
    500: '#787e28',
    950: '#000000',
  },
}
SCSS
$custom: #787e28;
$custom-light: #a1a367;
$custom-dark: #000000;
JSON
{
  "hex": "#787e28",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 40
  },
  "hsl": {
    "h": 64.186,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57073,
    "c": 0.10826,
    "h": 113.2
  },
  "luminance": 0.19068
}

Semantic roles & 50–950 ramp

primary
#787E28
secondary
#5A53AF
accent
#4DDB56
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #787E28

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

Preview Lab → · Contrast checker → · Palette generator →

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