#787B23#787B23

#787B23 is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.3% C 0.108 H 111.3°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#787B23
RGBrgb(120, 123, 35)
HSLhsl(62, 56%, 31%)
HSVhsv(62, 72%, 48%)
CMYKcmyk(2.4%, 0%, 71.5%, 51.8%)
CIE-LABlab(49.83, -12.78, 45.29)
CIE-LCHlch(49.83, 47.06, 105.75°)
OKLaboklab(56.32% -0.0395 0.1011)
OKLCHoklch(56.32% 0.109 111.3)
XYZxyz(15.1325, 18.2807, 4.3212)
Luminance0.1828 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787B23 #26237B
analogous
#7B5223 #787B23 #4C7B23
triadic
#787B23 #23787B #7B2378
tetradic
#787B23 #237B52 #26237B #7B234C
square
#787B23 #237B52 #26237B #7B234C
split-complementary
#787B23 #234C7B #52237B
monochromatic
#1B1C08 #4A4B15 #787B23 #A6AB31 #C8CC4C

Accessibility & contrast

On white

4.51
#787B23 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#787B23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787B23
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787B23#FFFFFF#000000##000000
##787B231.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#857515
Deuteranopia (green-blind)
#857829
Tritanopia (blue-blind)
#80736A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #787b23;
/* rgb */ color: rgb(120, 123, 35);
/* oklch */ color: oklch(56.3% 0.108 111.3);
Tailwind
colors: {
  custom: {
    50: '#a2a164',
    500: '#787b23',
    950: '#000000',
  },
}
SCSS
$custom: #787b23;
$custom-light: #a2a164;
$custom-dark: #000000;
JSON
{
  "hex": "#787b23",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 35
  },
  "hsl": {
    "h": 62.045,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.56315,
    "c": 0.1085,
    "h": 111.3
  },
  "luminance": 0.1828
}

Semantic roles & 50–950 ramp

primary
#787B23
secondary
#504CAE
accent
#49DF4E
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #787B23

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

Preview Lab → · Contrast checker → · Palette generator →

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