#787F13#787F13

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

Color values

HEX#787F13
RGBrgb(120, 127, 19)
HSLhsl(64, 74%, 29%)
HSVhsv(64, 85%, 50%)
CMYKcmyk(5.5%, 0%, 85%, 50.2%)
CIE-LABlab(50.94, -15.65, 51.76)
CIE-LCHlch(50.94, 54.07, 106.82°)
OKLaboklab(57.17% -0.0489 0.1118)
OKLCHoklch(57.17% 0.122 113.6)
XYZxyz(15.4532, 19.2192, 3.5116)
Luminance0.1922 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F13 #1A137F
analogous
#7F5013 #787F13 #427F13
triadic
#787F13 #13787F #7F1378
tetradic
#787F13 #137F50 #1A137F #7F1342
square
#787F13 #137F50 #1A137F #7F1342
split-complementary
#787F13 #13427F #50137F
monochromatic
#191B04 #464A0B #787F13 #AAB41B #D4E02D

Accessibility & contrast

On white

4.34
#787F13 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#787F13 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787F13
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787F13#FFFFFF#000000##000000
##787F131.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #787f13;
/* rgb */ color: rgb(120, 127, 19);
/* oklch */ color: oklch(57.2% 0.122 113.6);
Tailwind
colors: {
  custom: {
    50: '#a2a35d',
    500: '#787f13',
    950: '#000000',
  },
}
SCSS
$custom: #787f13;
$custom-light: #a2a35d;
$custom-dark: #000000;
JSON
{
  "hex": "#787f13",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 19
  },
  "hsl": {
    "h": 63.889,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.57174,
    "c": 0.12202,
    "h": 113.6
  },
  "luminance": 0.19219
}

Semantic roles & 50–950 ramp

primary
#787F13
secondary
#4139B4
accent
#37F143
background
#FAFAF5
surface
#F4F3E9
border
#CECDC5
text
#0F0F05
muted
#7F7F79

Preview Lab

Preview with #787F13

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

Preview Lab → · Contrast checker → · Palette generator →

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