#7B8717#7B8717

#7B8717 is a mid, vivid yellow. Relative luminance 0.216; OKLCH L 59.4% C 0.128 H 116.0°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#7B8717
RGBrgb(123, 135, 23)
HSLhsl(66, 71%, 31%)
HSVhsv(66, 83%, 53%)
CMYKcmyk(8.9%, 0%, 83%, 47.1%)
CIE-LABlab(53.60, -18.36, 53.05)
CIE-LCHlch(53.60, 56.14, 109.09°)
OKLaboklab(59.37% -0.0562 0.1152)
OKLCHoklch(59.37% 0.128 116)
XYZxyz(16.9875, 21.6010, 4.0850)
Luminance0.2160 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8717 #231787
analogous
#875B17 #7B8717 #438717
triadic
#7B8717 #177B87 #87177B
tetradic
#7B8717 #17875B #231787 #871743
square
#7B8717 #17875B #231787 #871743
split-complementary
#7B8717 #174387 #5B1787
monochromatic
#1C1E05 #4B530E #7B8717 #ABBB20 #CCDE3B

Accessibility & contrast

On white

3.95
#7B8717 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#7B8717 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8717
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8717#FFFFFF#000000##000000
##7B87171.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#908122
Tritanopia (blue-blind)
#837F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7b8717;
/* rgb */ color: rgb(123, 135, 23);
/* oklch */ color: oklch(59.4% 0.128 116.0);
Tailwind
colors: {
  custom: {
    50: '#a5a960',
    500: '#7b8717',
    950: '#000000',
  },
}
SCSS
$custom: #7b8717;
$custom-light: #a5a960;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8717",
  "rgb": {
    "r": 123,
    "g": 135,
    "b": 23
  },
  "hsl": {
    "h": 66.429,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.59374,
    "c": 0.12817,
    "h": 116
  },
  "luminance": 0.21601
}

Semantic roles & 50–950 ramp

primary
#7B8717
secondary
#4C3FBB
accent
#3AEE4D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7B8717

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

Preview Lab → · Contrast checker → · Palette generator →

#7B8717 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva