#787E27#787E27

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

Color values

HEX#787E27
RGBrgb(120, 126, 39)
HSLhsl(64, 53%, 32%)
HSVhsv(64, 69%, 49%)
CMYKcmyk(4.8%, 0%, 69%, 50.6%)
CIE-LABlab(50.76, -14.15, 44.56)
CIE-LCHlch(50.76, 46.75, 107.62°)
OKLaboklab(57.06% -0.0429 0.1002)
OKLCHoklch(57.06% 0.109 113.2)
XYZxyz(15.5732, 19.0616, 4.7779)
Luminance0.1906 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E27 #2D277E
analogous
#7E5927 #787E27 #4D7E27
triadic
#787E27 #27787E #7E2778
tetradic
#787E27 #277E59 #2D277E #7E274D
square
#787E27 #277E59 #2D277E #7E274D
split-complementary
#787E27 #274D7E #59277E
monochromatic
#1F210A #4B4F19 #787E27 #A5AD35 #C2CA55

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787E27#FFFFFF#000000##000000
##787E271.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)
#87781A
Deuteranopia (green-blind)
#877A2D
Tritanopia (blue-blind)
#80766C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e27;
/* rgb */ color: rgb(120, 126, 39);
/* oklch */ color: oklch(57.1% 0.109 113.2);
Tailwind
colors: {
  custom: {
    50: '#a2a367',
    500: '#787e27',
    950: '#000000',
  },
}
SCSS
$custom: #787e27;
$custom-light: #a2a367;
$custom-dark: #000000;
JSON
{
  "hex": "#787e27",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 39
  },
  "hsl": {
    "h": 64.138,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.57064,
    "c": 0.10903,
    "h": 113.2
  },
  "luminance": 0.19061
}

Semantic roles & 50–950 ramp

primary
#787E27
secondary
#5852AF
accent
#4CDC56
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #787E27

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

Preview Lab → · Contrast checker → · Palette generator →

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