#7B8E1B#7B8E1B

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

Color values

HEX#7B8E1B
RGBrgb(123, 142, 27)
HSLhsl(70, 68%, 33%)
HSVhsv(70, 81%, 56%)
CMYKcmyk(13.4%, 0%, 81%, 44.3%)
CIE-LABlab(55.72, -21.80, 53.76)
CIE-LCHlch(55.72, 58.01, 112.08°)
OKLaboklab(61.09% -0.0654 0.1174)
OKLCHoklch(61.09% 0.134 119.1)
XYZxyz(18.0396, 23.6362, 4.6486)
Luminance0.2364 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8E1B #2E1B8E
analogous
#8E671B #7B8E1B #418E1B
triadic
#7B8E1B #1B7B8E #8E1B7B
tetradic
#7B8E1B #1B8E67 #2E1B8E #8E1B41
square
#7B8E1B #1B8E67 #2E1B8E #8E1B41
split-complementary
#7B8E1B #1B418E #671B8E
monochromatic
#222707 #4E5B11 #7B8E1B #A8C125 #C3DC47

Accessibility & contrast

On white

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

On black

5.73
#7B8E1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8E1B
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8E1B#FFFFFF#000000##000000
##7B8E1B1.003.675.735.73
#FFFFFF3.671.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b8e1b;
/* rgb */ color: rgb(123, 142, 27);
/* oklch */ color: oklch(61.1% 0.134 119.1);
Tailwind
colors: {
  custom: {
    50: '#a5af63',
    500: '#7b8e1b',
    950: '#000000',
  },
}
SCSS
$custom: #7b8e1b;
$custom-light: #a5af63;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8e1b",
  "rgb": {
    "r": 123,
    "g": 142,
    "b": 27
  },
  "hsl": {
    "h": 69.913,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.61086,
    "c": 0.13439,
    "h": 119.1
  },
  "luminance": 0.23636
}

Semantic roles & 50–950 ramp

primary
#7B8E1B
secondary
#5B47BE
accent
#3DEB5A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8E1B

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

Preview Lab → · Contrast checker → · Palette generator →

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