#787E23#787E23

#787E23 is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.0% C 0.112 H 113.2°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#787E23
RGBrgb(120, 126, 35)
HSLhsl(64, 57%, 32%)
HSVhsv(64, 72%, 49%)
CMYKcmyk(4.8%, 0%, 72.2%, 50.6%)
CIE-LABlab(50.73, -14.40, 46.18)
CIE-LCHlch(50.73, 48.37, 107.32°)
OKLaboklab(57.03% -0.044 0.1029)
OKLCHoklch(57.03% 0.112 113.2)
XYZxyz(15.5104, 19.0365, 4.4471)
Luminance0.1904 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787E23 #29237E
analogous
#7E5723 #787E23 #4B7E23
triadic
#787E23 #23787E #7E2378
tetradic
#787E23 #237E57 #29237E #7E234B
square
#787E23 #237E57 #29237E #7E234B
split-complementary
#787E23 #234B7E #57237E
monochromatic
#1D1E08 #4A4E16 #787E23 #A6AE30 #C5CE4E

Accessibility & contrast

On white

4.37
#787E23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#787E23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787E23
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787E23#FFFFFF#000000##000000
##787E231.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#887814
Deuteranopia (green-blind)
#887A2A
Tritanopia (blue-blind)
#80766C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #787e23;
/* rgb */ color: rgb(120, 126, 35);
/* oklch */ color: oklch(57.0% 0.112 113.2);
Tailwind
colors: {
  custom: {
    50: '#a2a364',
    500: '#787e23',
    950: '#000000',
  },
}
SCSS
$custom: #787e23;
$custom-light: #a2a364;
$custom-dark: #000000;
JSON
{
  "hex": "#787e23",
  "rgb": {
    "r": 120,
    "g": 126,
    "b": 35
  },
  "hsl": {
    "h": 63.956,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.57031,
    "c": 0.11195,
    "h": 113.2
  },
  "luminance": 0.19036
}

Semantic roles & 50–950 ramp

primary
#787E23
secondary
#534CB0
accent
#48E052
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #787E23

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

Preview Lab → · Contrast checker → · Palette generator →

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