#787F21#787F21

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

Color values

HEX#787F21
RGBrgb(120, 127, 33)
HSLhsl(64, 59%, 31%)
HSVhsv(64, 74%, 50%)
CMYKcmyk(5.5%, 0%, 74%, 50.2%)
CIE-LABlab(51.02, -15.04, 47.24)
CIE-LCHlch(51.02, 49.57, 107.67°)
OKLaboklab(57.26% -0.046 0.1048)
OKLCHoklch(57.26% 0.114 113.7)
XYZxyz(15.6101, 19.2819, 4.3380)
Luminance0.1928 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F21 #28217F
analogous
#7F5721 #787F21 #497F21
triadic
#787F21 #21787F #7F2178
tetradic
#787F21 #217F57 #28217F #7F2149
square
#787F21 #217F57 #28217F #7F2149
split-complementary
#787F21 #21497F #57217F
monochromatic
#1C1E08 #4A4E14 #787F21 #A6B02E #C6D04A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787F21#FFFFFF#000000##000000
##787F211.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)
#897910
Deuteranopia (green-blind)
#897A28
Tritanopia (blue-blind)
#80776D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787f21;
/* rgb */ color: rgb(120, 127, 33);
/* oklch */ color: oklch(57.3% 0.114 113.7);
Tailwind
colors: {
  custom: {
    50: '#a2a463',
    500: '#787f21',
    950: '#000000',
  },
}
SCSS
$custom: #787f21;
$custom-light: #a2a463;
$custom-dark: #000000;
JSON
{
  "hex": "#787f21",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 33
  },
  "hsl": {
    "h": 64.468,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.57256,
    "c": 0.11446,
    "h": 113.7
  },
  "luminance": 0.19282
}

Semantic roles & 50–950 ramp

primary
#787F21
secondary
#524AB2
accent
#46E251
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #787F21

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

Preview Lab → · Contrast checker → · Palette generator →

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