#7B8817#7B8817

#7B8817 is a mid, vivid yellow. Relative luminance 0.219; OKLCH L 59.6% C 0.129 H 116.5°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7B8817
RGBrgb(123, 136, 23)
HSLhsl(67, 71%, 31%)
HSVhsv(67, 83%, 53%)
CMYKcmyk(9.6%, 0%, 83.1%, 46.7%)
CIE-LABlab(53.90, -18.88, 53.31)
CIE-LCHlch(53.90, 56.56, 109.50°)
OKLaboklab(59.61% -0.0577 0.1157)
OKLCHoklch(59.61% 0.129 116.5)
XYZxyz(17.1277, 21.8814, 4.1317)
Luminance0.2188 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8817 #241788
analogous
#885C17 #7B8817 #428817
triadic
#7B8817 #177B88 #88177B
tetradic
#7B8817 #17885C #241788 #881742
square
#7B8817 #17885C #241788 #881742
split-complementary
#7B8817 #174288 #5C1788
monochromatic
#1C1F05 #4C540E #7B8817 #AABC20 #CBDE3B

Accessibility & contrast

On white

3.91
#7B8817 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#7B8817 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8817
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8817#FFFFFF#000000##000000
##7B88171.003.915.385.38
#FFFFFF3.911.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#918223
Tritanopia (blue-blind)
#838074
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7b8817;
/* rgb */ color: rgb(123, 136, 23);
/* oklch */ color: oklch(59.6% 0.129 116.5);
Tailwind
colors: {
  custom: {
    50: '#a5aa60',
    500: '#7b8817',
    950: '#000000',
  },
}
SCSS
$custom: #7b8817;
$custom-light: #a5aa60;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8817",
  "rgb": {
    "r": 123,
    "g": 136,
    "b": 23
  },
  "hsl": {
    "h": 66.903,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.59615,
    "c": 0.1293,
    "h": 116.5
  },
  "luminance": 0.21881
}

Semantic roles & 50–950 ramp

primary
#7B8817
secondary
#4D3FBC
accent
#3AEE4F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7B8817

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

Preview Lab → · Contrast checker → · Palette generator →

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