#787E24#787E24

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

Color values

HEX#787E24
RGBrgb(120, 126, 36)
HSLhsl(64, 56%, 32%)
HSVhsv(64, 71%, 49%)
CMYKcmyk(4.8%, 0%, 71.4%, 50.6%)
CIE-LABlab(50.74, -14.34, 45.78)
CIE-LCHlch(50.74, 47.97, 107.39°)
OKLaboklab(57.04% -0.0437 0.1023)
OKLCHoklch(57.04% 0.111 113.2)
XYZxyz(15.5255, 19.0425, 4.5264)
Luminance0.1904 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E24 #2A247E
analogous
#7E5724 #787E24 #4B7E24
triadic
#787E24 #24787E #7E2478
tetradic
#787E24 #247E57 #2A247E #7E244B
square
#787E24 #247E57 #2A247E #7E244B
split-complementary
#787E24 #244B7E #57247E
monochromatic
#1D1F09 #4B4E16 #787E24 #A5AE32 #C5CD50

Accessibility & contrast

On white

4.37
#787E24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##787E24#FFFFFF#000000##000000
##787E241.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#887816
Deuteranopia (green-blind)
#887A2B
Tritanopia (blue-blind)
#80766C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e24;
/* rgb */ color: rgb(120, 126, 36);
/* oklch */ color: oklch(57.0% 0.111 113.2);
Tailwind
colors: {
  custom: {
    50: '#a2a365',
    500: '#787e24',
    950: '#000000',
  },
}
SCSS
$custom: #787e24;
$custom-light: #a2a365;
$custom-dark: #000000;
JSON
{
  "hex": "#787e24",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 36
  },
  "hsl": {
    "h": 64,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.57039,
    "c": 0.11124,
    "h": 113.2
  },
  "luminance": 0.19042
}

Semantic roles & 50–950 ramp

primary
#787E24
secondary
#544EB0
accent
#49DF53
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #787E24

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

Preview Lab → · Contrast checker → · Palette generator →

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