#7B8617#7B8617

#7B8617 is a mid, vivid yellow. Relative luminance 0.213; OKLCH L 59.1% C 0.127 H 115.6°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#7B8617
RGBrgb(123, 134, 23)
HSLhsl(66, 71%, 31%)
HSVhsv(66, 83%, 53%)
CMYKcmyk(8.2%, 0%, 82.8%, 47.5%)
CIE-LABlab(53.30, -17.84, 52.79)
CIE-LCHlch(53.30, 55.72, 108.67°)
OKLaboklab(59.13% -0.0548 0.1146)
OKLCHoklch(59.13% 0.127 115.6)
XYZxyz(16.8486, 21.3233, 4.0387)
Luminance0.2132 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8617 #221786
analogous
#865917 #7B8617 #438617
triadic
#7B8617 #177B86 #86177B
tetradic
#7B8617 #178659 #221786 #861743
square
#7B8617 #178659 #221786 #861743
split-complementary
#7B8617 #174386 #591786
monochromatic
#1B1E05 #4B520E #7B8617 #ABBA20 #CDDD3A

Accessibility & contrast

On white

3.99
#7B8617 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#7B8617 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8617
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8617#FFFFFF#000000##000000
##7B86171.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#8F8022
Tritanopia (blue-blind)
#847E72
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7b8617;
/* rgb */ color: rgb(123, 134, 23);
/* oklch */ color: oklch(59.1% 0.127 115.6);
Tailwind
colors: {
  custom: {
    50: '#a5a960',
    500: '#7b8617',
    950: '#000000',
  },
}
SCSS
$custom: #7b8617;
$custom-light: #a5a960;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8617",
  "rgb": {
    "r": 123,
    "g": 134,
    "b": 23
  },
  "hsl": {
    "h": 65.946,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.59133,
    "c": 0.12704,
    "h": 115.6
  },
  "luminance": 0.21323
}

Semantic roles & 50–950 ramp

primary
#7B8617
secondary
#4B3FBA
accent
#3AED4C
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7B8617

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

Preview Lab → · Contrast checker → · Palette generator →

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