#7B8915#7B8915

#7B8915 is a mid, vivid yellow. Relative luminance 0.222; OKLCH L 59.8% C 0.131 H 116.9°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#7B8915
RGBrgb(123, 137, 21)
HSLhsl(67, 73%, 31%)
HSVhsv(67, 85%, 54%)
CMYKcmyk(10.2%, 0%, 84.7%, 46.3%)
CIE-LABlab(54.19, -19.47, 54.11)
CIE-LCHlch(54.19, 57.51, 109.79°)
OKLaboklab(59.85% -0.0594 0.1171)
OKLCHoklch(59.85% 0.131 116.9)
XYZxyz(17.2499, 22.1566, 4.0773)
Luminance0.2216 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8915 #231589
analogous
#895D15 #7B8915 #418915
triadic
#7B8915 #157B89 #89157B
tetradic
#7B8915 #15895D #231589 #891541
square
#7B8915 #15895D #231589 #891541
split-complementary
#7B8915 #154189 #5D1589
monochromatic
#1C1F05 #4B540D #7B8915 #ABBE1D #CCE038

Accessibility & contrast

On white

3.87
#7B8915 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#7B8915 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8915
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8915#FFFFFF#000000##000000
##7B89151.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#928222
Tritanopia (blue-blind)
#838174
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7b8915;
/* rgb */ color: rgb(123, 137, 21);
/* oklch */ color: oklch(59.8% 0.131 116.9);
Tailwind
colors: {
  custom: {
    50: '#a5ab60',
    500: '#7b8915',
    950: '#000000',
  },
}
SCSS
$custom: #7b8915;
$custom-light: #a5ab60;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8915",
  "rgb": {
    "r": 123,
    "g": 137,
    "b": 21
  },
  "hsl": {
    "h": 67.241,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.59847,
    "c": 0.13131,
    "h": 116.9
  },
  "luminance": 0.22156
}

Semantic roles & 50–950 ramp

primary
#7B8915
secondary
#4C3DBD
accent
#38F04E
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#101005
muted
#7F7F79

Preview Lab

Preview with #7B8915

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

Preview Lab → · Contrast checker → · Palette generator →

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