#787E21#787E21

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

Color values

HEX#787E21
RGBrgb(120, 126, 33)
HSLhsl(64, 58%, 31%)
HSVhsv(64, 74%, 49%)
CMYKcmyk(4.8%, 0%, 73.8%, 50.6%)
CIE-LABlab(50.72, -14.51, 46.95)
CIE-LCHlch(50.72, 49.14, 107.17°)
OKLaboklab(57.02% -0.0445 0.1042)
OKLCHoklch(57.02% 0.113 113.1)
XYZxyz(15.4816, 19.0249, 4.2952)
Luminance0.1903 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E21 #27217E
analogous
#7E5521 #787E21 #497E21
triadic
#787E21 #21787E #7E2178
tetradic
#787E21 #217E55 #27217E #7E2149
square
#787E21 #217E55 #27217E #7E2149
split-complementary
#787E21 #21497E #55217E
monochromatic
#1C1D08 #4A4E14 #787E21 #A6AE2E #C7D04A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787E21#FFFFFF#000000##000000
##787E211.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)
#887810
Deuteranopia (green-blind)
#887A28
Tritanopia (blue-blind)
#80766C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e21;
/* rgb */ color: rgb(120, 126, 33);
/* oklch */ color: oklch(57.0% 0.113 113.1);
Tailwind
colors: {
  custom: {
    50: '#a2a363',
    500: '#787e21',
    950: '#000000',
  },
}
SCSS
$custom: #787e21;
$custom-light: #a2a363;
$custom-dark: #000000;
JSON
{
  "hex": "#787e21",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 33
  },
  "hsl": {
    "h": 63.871,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.57016,
    "c": 0.11331,
    "h": 113.1
  },
  "luminance": 0.19025
}

Semantic roles & 50–950 ramp

primary
#787E21
secondary
#514AB1
accent
#46E250
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #787E21

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

Preview Lab → · Contrast checker → · Palette generator →

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