#787F17#787F17

#787F17 is a mid, vivid yellow. Relative luminance 0.192; OKLCH L 57.2% C 0.120 H 113.6°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#787F17
RGBrgb(120, 127, 23)
HSLhsl(64, 69%, 29%)
HSVhsv(64, 82%, 50%)
CMYKcmyk(5.5%, 0%, 81.9%, 50.2%)
CIE-LABlab(50.96, -15.51, 50.63)
CIE-LCHlch(50.96, 52.95, 107.03°)
OKLaboklab(57.19% -0.0482 0.1101)
OKLCHoklch(57.19% 0.12 113.6)
XYZxyz(15.4903, 19.2340, 3.7070)
Luminance0.1923 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F17 #1E177F
analogous
#7F5217 #787F17 #447F17
triadic
#787F17 #17787F #7F1778
tetradic
#787F17 #177F52 #1E177F #7F1744
square
#787F17 #177F52 #1E177F #7F1744
split-complementary
#787F17 #17447F #52177F
monochromatic
#181A05 #474B0E #787F17 #A9B320 #CFDB36

Accessibility & contrast

On white

4.33
#787F17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#787F17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787F17
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787F17#FFFFFF#000000##000000
##787F171.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#897800
Deuteranopia (green-blind)
#897A21
Tritanopia (blue-blind)
#81776C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787f17;
/* rgb */ color: rgb(120, 127, 23);
/* oklch */ color: oklch(57.2% 0.120 113.6);
Tailwind
colors: {
  custom: {
    50: '#a2a35f',
    500: '#787f17',
    950: '#000000',
  },
}
SCSS
$custom: #787f17;
$custom-light: #a2a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#787f17",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 64.038,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.57193,
    "c": 0.1202,
    "h": 113.6
  },
  "luminance": 0.19234
}

Semantic roles & 50–950 ramp

primary
#787F17
secondary
#463EB4
accent
#3CEC48
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #787F17

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

Preview Lab → · Contrast checker → · Palette generator →

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