#787F18#787F18

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

Color values

HEX#787F18
RGBrgb(120, 127, 24)
HSLhsl(64, 68%, 30%)
HSVhsv(64, 81%, 50%)
CMYKcmyk(5.5%, 0%, 81.1%, 50.2%)
CIE-LABlab(50.96, -15.47, 50.32)
CIE-LCHlch(50.96, 52.65, 107.08°)
OKLaboklab(57.2% -0.048 0.1097)
OKLCHoklch(57.2% 0.12 113.7)
XYZxyz(15.5005, 19.2381, 3.7608)
Luminance0.1924 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F18 #1F187F
analogous
#7F5318 #787F18 #447F18
triadic
#787F18 #18787F #7F1878
tetradic
#787F18 #187F53 #1F187F #7F1844
square
#787F18 #187F53 #1F187F #7F1844
split-complementary
#787F18 #18447F #53187F
monochromatic
#181A05 #474C0E #787F18 #A9B222 #CED938

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##787F18#FFFFFF#000000##000000
##787F181.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)
#897A22
Tritanopia (blue-blind)
#81776C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787f18;
/* rgb */ color: rgb(120, 127, 24);
/* oklch */ color: oklch(57.2% 0.120 113.7);
Tailwind
colors: {
  custom: {
    50: '#a2a35f',
    500: '#787f18',
    950: '#000000',
  },
}
SCSS
$custom: #787f18;
$custom-light: #a2a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#787f18",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 24
  },
  "hsl": {
    "h": 64.078,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.57199,
    "c": 0.1197,
    "h": 113.7
  },
  "luminance": 0.19238
}

Semantic roles & 50–950 ramp

primary
#787F18
secondary
#473FB3
accent
#3DEB49
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #787F18

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

Preview Lab → · Contrast checker → · Palette generator →

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