#787F10#787F10

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

Color values

HEX#787F10
RGBrgb(120, 127, 16)
HSLhsl(64, 78%, 28%)
HSVhsv(64, 87%, 50%)
CMYKcmyk(5.5%, 0%, 87.4%, 50.2%)
CIE-LABlab(50.93, -15.74, 52.51)
CIE-LCHlch(50.93, 54.82, 106.69°)
OKLaboklab(57.16% -0.0494 0.1129)
OKLCHoklch(57.16% 0.123 113.6)
XYZxyz(15.4291, 19.2096, 3.3852)
Luminance0.1921 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787F10 #17107F
analogous
#7F4E10 #787F10 #407F10
triadic
#787F10 #10787F #7F1078
tetradic
#787F10 #107F4E #17107F #7F1040
square
#787F10 #107F4E #17107F #7F1040
split-complementary
#787F10 #10407F #4E107F
monochromatic
#1A1B03 #454909 #787F10 #ABB517 #D8E426

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #787f10;
/* rgb */ color: rgb(120, 127, 16);
/* oklch */ color: oklch(57.2% 0.123 113.6);
Tailwind
colors: {
  custom: {
    50: '#a3a35c',
    500: '#787f10',
    950: '#000000',
  },
}
SCSS
$custom: #787f10;
$custom-light: #a3a35c;
$custom-dark: #000000;
JSON
{
  "hex": "#787f10",
  "rgb": {
    "r": 120,
    "g": 127,
    "b": 16
  },
  "hsl": {
    "h": 63.784,
    "s": 77.622,
    "l": 28.039
  },
  "oklch": {
    "l": 0.57162,
    "c": 0.12321,
    "h": 113.6
  },
  "luminance": 0.19209
}

Semantic roles & 50–950 ramp

primary
#787F10
secondary
#3E36B5
accent
#34F440
background
#FAFAF5
surface
#F4F3E9
border
#CECDC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #787F10

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

Preview Lab → · Contrast checker → · Palette generator →

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