#787C23#787C23

#787C23 is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.6% C 0.110 H 112.0°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#787C23
RGBrgb(120, 124, 35)
HSLhsl(63, 56%, 31%)
HSVhsv(63, 72%, 49%)
CMYKcmyk(3.2%, 0%, 71.8%, 51.4%)
CIE-LABlab(50.13, -13.32, 45.58)
CIE-LCHlch(50.13, 47.49, 106.29°)
OKLaboklab(56.55% -0.041 0.1017)
OKLCHoklch(56.55% 0.11 112)
XYZxyz(15.2572, 18.5301, 4.3627)
Luminance0.1853 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787C23 #27237C
analogous
#7C5323 #787C23 #4B7C23
triadic
#787C23 #23787C #7C2378
tetradic
#787C23 #237C53 #27237C #7C234B
square
#787C23 #237C53 #27237C #7C234B
split-complementary
#787C23 #234B7C #53237C
monochromatic
#1C1D08 #4A4C16 #787C23 #A6AC30 #C7CD4D

Accessibility & contrast

On white

4.46
#787C23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#787C23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787C23
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787C23#FFFFFF#000000##000000
##787C231.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#867615
Deuteranopia (green-blind)
#86782A
Tritanopia (blue-blind)
#80746A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #787c23;
/* rgb */ color: rgb(120, 124, 35);
/* oklch */ color: oklch(56.6% 0.110 112.0);
Tailwind
colors: {
  custom: {
    50: '#a2a164',
    500: '#787c23',
    950: '#000000',
  },
}
SCSS
$custom: #787c23;
$custom-light: #a2a164;
$custom-dark: #000000;
JSON
{
  "hex": "#787c23",
  "rgb": {
    "r": 120,
    "g": 124,
    "b": 35
  },
  "hsl": {
    "h": 62.697,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.56553,
    "c": 0.10965,
    "h": 112
  },
  "luminance": 0.1853
}

Semantic roles & 50–950 ramp

primary
#787C23
secondary
#514CAF
accent
#49DF4F
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #787C23

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

Preview Lab → · Contrast checker → · Palette generator →

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