#7B8815#7B8815

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

Color values

HEX#7B8815
RGBrgb(123, 136, 21)
HSLhsl(67, 73%, 31%)
HSVhsv(67, 85%, 53%)
CMYKcmyk(9.6%, 0%, 84.6%, 46.7%)
CIE-LABlab(53.89, -18.95, 53.85)
CIE-LCHlch(53.89, 57.09, 109.39°)
OKLaboklab(59.61% -0.058 0.1165)
OKLCHoklch(59.61% 0.13 116.5)
XYZxyz(17.1084, 21.8737, 4.0301)
Luminance0.2187 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8815 #221588
analogous
#885B15 #7B8815 #418815
triadic
#7B8815 #157B88 #88157B
tetradic
#7B8815 #15885B #221588 #881541
square
#7B8815 #15885B #221588 #881541
split-complementary
#7B8815 #154188 #5B1588
monochromatic
#1B1E05 #4B530D #7B8815 #ABBD1D #CDE037

Accessibility & contrast

On white

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

On black

5.37
#7B8815 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8815
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8815#FFFFFF#000000##000000
##7B88151.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b8815;
/* rgb */ color: rgb(123, 136, 21);
/* oklch */ color: oklch(59.6% 0.130 116.5);
Tailwind
colors: {
  custom: {
    50: '#a5aa5f',
    500: '#7b8815',
    950: '#000000',
  },
}
SCSS
$custom: #7b8815;
$custom-light: #a5aa5f;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8815",
  "rgb": {
    "r": 123,
    "g": 136,
    "b": 21
  },
  "hsl": {
    "h": 66.783,
    "s": 73.248,
    "l": 30.784
  },
  "oklch": {
    "l": 0.59606,
    "c": 0.13018,
    "h": 116.5
  },
  "luminance": 0.21873
}

Semantic roles & 50–950 ramp

primary
#7B8815
secondary
#4B3DBC
accent
#38F04D
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#101005
muted
#7F7F79

Preview Lab

Preview with #7B8815

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

Preview Lab → · Contrast checker → · Palette generator →

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