#7B8011#7B8011

#7B8011 is a mid, vivid yellow. Relative luminance 0.197; OKLCH L 57.7% C 0.123 H 112.5°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#7B8011
RGBrgb(123, 128, 17)
HSLhsl(63, 77%, 28%)
HSVhsv(63, 87%, 50%)
CMYKcmyk(3.9%, 0%, 86.7%, 49.8%)
CIE-LABlab(51.49, -14.87, 52.83)
CIE-LCHlch(51.49, 54.88, 105.72°)
OKLaboklab(57.67% -0.047 0.1136)
OKLCHoklch(57.67% 0.123 112.5)
XYZxyz(15.9893, 19.6902, 3.4885)
Luminance0.1969 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8011 #161180
analogous
#804D11 #7B8011 #438011
triadic
#7B8011 #117B80 #80117B
tetradic
#7B8011 #11804D #161180 #801143
square
#7B8011 #11804D #161180 #801143
split-complementary
#7B8011 #114380 #4D1180
monochromatic
#1A1B04 #474A0A #7B8011 #AFB618 #DAE329

Accessibility & contrast

On white

4.25
#7B8011 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#7B8011 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8011
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8011#FFFFFF#000000##000000
##7B80111.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#8B7C1D
Tritanopia (blue-blind)
#84786D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #7b8011;
/* rgb */ color: rgb(123, 128, 17);
/* oklch */ color: oklch(57.7% 0.123 112.5);
Tailwind
colors: {
  custom: {
    50: '#a5a45d',
    500: '#7b8011',
    950: '#000000',
  },
}
SCSS
$custom: #7b8011;
$custom-light: #a5a45d;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8011",
  "rgb": {
    "r": 123,
    "g": 128,
    "b": 17
  },
  "hsl": {
    "h": 62.703,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.57668,
    "c": 0.12297,
    "h": 112.5
  },
  "luminance": 0.1969
}

Semantic roles & 50–950 ramp

primary
#7B8011
secondary
#3D37B6
accent
#35F33D
background
#FAFAF5
surface
#F4F4E9
border
#CECEC5
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #7B8011

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

Preview Lab → · Contrast checker → · Palette generator →

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