#787E25#787E25

#787E25 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#787E25
RGBrgb(120, 126, 37)
HSLhsl(64, 55%, 32%)
HSVhsv(64, 71%, 49%)
CMYKcmyk(4.8%, 0%, 70.6%, 50.6%)
CIE-LABlab(50.74, -14.28, 45.38)
CIE-LCHlch(50.74, 47.57, 107.47°)
OKLaboklab(57.05% -0.0435 0.1016)
OKLCHoklch(57.05% 0.111 113.2)
XYZxyz(15.5410, 19.0487, 4.6080)
Luminance0.1905 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E25 #2B257E
analogous
#7E5825 #787E25 #4C7E25
triadic
#787E25 #25787E #7E2578
tetradic
#787E25 #257E58 #2B257E #7E254C
square
#787E25 #257E58 #2B257E #7E254C
split-complementary
#787E25 #254C7E #58257E
monochromatic
#1E1F09 #4B4F17 #787E25 #A5AD33 #C4CC51

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787E25#FFFFFF#000000##000000
##787E251.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)
#887817
Deuteranopia (green-blind)
#887A2B
Tritanopia (blue-blind)
#80766C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e25;
/* rgb */ color: rgb(120, 126, 37);
/* oklch */ color: oklch(57.0% 0.111 113.2);
Tailwind
colors: {
  custom: {
    50: '#a2a365',
    500: '#787e25',
    950: '#000000',
  },
}
SCSS
$custom: #787e25;
$custom-light: #a2a365;
$custom-dark: #000000;
JSON
{
  "hex": "#787e25",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 37
  },
  "hsl": {
    "h": 64.045,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.57047,
    "c": 0.11052,
    "h": 113.2
  },
  "luminance": 0.19048
}

Semantic roles & 50–950 ramp

primary
#787E25
secondary
#554FB0
accent
#4ADE54
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #787E25

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

Preview Lab → · Contrast checker → · Palette generator →

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