#7B8E16#7B8E16

#7B8E16 is a mid, vivid yellow. Relative luminance 0.236; OKLCH L 61.1% C 0.137 H 119.0°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#7B8E16
RGBrgb(123, 142, 22)
HSLhsl(70, 73%, 32%)
HSVhsv(70, 85%, 56%)
CMYKcmyk(13.4%, 0%, 84.5%, 44.3%)
CIE-LABlab(55.70, -21.99, 55.15)
CIE-LCHlch(55.70, 59.37, 111.74°)
OKLaboklab(61.06% -0.0663 0.1195)
OKLCHoklch(61.06% 0.137 119)
XYZxyz(17.9866, 23.6150, 4.3695)
Luminance0.2361 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8E16 #29168E
analogous
#8E6516 #7B8E16 #3F8E16
triadic
#7B8E16 #167B8E #8E167B
tetradic
#7B8E16 #168E65 #29168E #8E163F
square
#7B8E16 #168E65 #29168E #8E163F
split-complementary
#7B8E16 #163F8E #65168E
monochromatic
#1F2406 #4D590E #7B8E16 #A9C31E #C7E13D

Accessibility & contrast

On white

3.67
#7B8E16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#7B8E16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8E16
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8E16#FFFFFF#000000##000000
##7B8E161.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#988500
Deuteranopia (green-blind)
#968623
Tritanopia (blue-blind)
#838679
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7b8e16;
/* rgb */ color: rgb(123, 142, 22);
/* oklch */ color: oklch(61.1% 0.137 119.0);
Tailwind
colors: {
  custom: {
    50: '#a5af61',
    500: '#7b8e16',
    950: '#000000',
  },
}
SCSS
$custom: #7b8e16;
$custom-light: #a5af61;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8e16",
  "rgb": {
    "r": 123,
    "g": 142,
    "b": 22
  },
  "hsl": {
    "h": 69.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.61062,
    "c": 0.13665,
    "h": 119
  },
  "luminance": 0.23615
}

Semantic roles & 50–950 ramp

primary
#7B8E16
secondary
#533FC1
accent
#38F055
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7B8E16

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

Preview Lab → · Contrast checker → · Palette generator →

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