#787F27#787F27

#787F27 is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.110 H 113.8°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#787F27
RGBrgb(120, 127, 39)
HSLhsl(65, 53%, 33%)
HSVhsv(65, 69%, 50%)
CMYKcmyk(5.5%, 0%, 69.3%, 50.2%)
CIE-LABlab(51.06, -14.69, 44.86)
CIE-LCHlch(51.06, 47.21, 108.13°)
OKLaboklab(57.3% -0.0444 0.1009)
OKLCHoklch(57.3% 0.11 113.8)
XYZxyz(15.7017, 19.3186, 4.8208)
Luminance0.1932 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F27 #2E277F
analogous
#7F5A27 #787F27 #4C7F27
triadic
#787F27 #27787F #7F2778
tetradic
#787F27 #277F5A #2E277F #7F274C
square
#787F27 #277F5A #2E277F #7F274C
split-complementary
#787F27 #274C7F #5A277F
monochromatic
#20210A #4C5019 #787F27 #A4AE35 #C2CB55

Accessibility & contrast

On white

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

On black

4.86
#787F27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787F27
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787F27#FFFFFF#000000##000000
##787F271.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#88791A
Deuteranopia (green-blind)
#887A2D
Tritanopia (blue-blind)
#80776D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #787f27;
/* rgb */ color: rgb(120, 127, 39);
/* oklch */ color: oklch(57.3% 0.110 113.8);
Tailwind
colors: {
  custom: {
    50: '#a2a467',
    500: '#787f27',
    950: '#000000',
  },
}
SCSS
$custom: #787f27;
$custom-light: #a2a467;
$custom-dark: #000000;
JSON
{
  "hex": "#787f27",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 39
  },
  "hsl": {
    "h": 64.773,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57303,
    "c": 0.11022,
    "h": 113.8
  },
  "luminance": 0.19318
}

Semantic roles & 50–950 ramp

primary
#787F27
secondary
#5A52B0
accent
#4BDC57
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #787F27

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

Preview Lab → · Contrast checker → · Palette generator →

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