#7B8A1B#7B8A1B

#7B8A1B is a mid, vivid yellow. Relative luminance 0.225; OKLCH L 60.1% C 0.130 H 117.4°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#7B8A1B
RGBrgb(123, 138, 27)
HSLhsl(68, 67%, 32%)
HSVhsv(68, 80%, 54%)
CMYKcmyk(10.9%, 0%, 80.4%, 45.9%)
CIE-LABlab(54.52, -19.76, 52.67)
CIE-LCHlch(54.52, 56.26, 110.56°)
OKLaboklab(60.12% -0.0598 0.1151)
OKLCHoklch(60.12% 0.13 117.4)
XYZxyz(17.4551, 22.4672, 4.4538)
Luminance0.2247 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8A1B #2A1B8A
analogous
#8A621B #7B8A1B #448A1B
triadic
#7B8A1B #1B7B8A #8A1B7B
tetradic
#7B8A1B #1B8A62 #2A1B8A #8A1B44
square
#7B8A1B #1B8A62 #2A1B8A #8A1B44
split-complementary
#7B8A1B #1B448A #621B8A
monochromatic
#202407 #4D5711 #7B8A1B #A9BD25 #C6DB45

Accessibility & contrast

On white

3.82
#7B8A1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#7B8A1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8A1B
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8A1B#FFFFFF#000000##000000
##7B8A1B1.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#928326
Tritanopia (blue-blind)
#838276
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7b8a1b;
/* rgb */ color: rgb(123, 138, 27);
/* oklch */ color: oklch(60.1% 0.130 117.4);
Tailwind
colors: {
  custom: {
    50: '#a5ac62',
    500: '#7b8a1b',
    950: '#000000',
  },
}
SCSS
$custom: #7b8a1b;
$custom-light: #a5ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8a1b",
  "rgb": {
    "r": 123,
    "g": 138,
    "b": 27
  },
  "hsl": {
    "h": 68.108,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.60118,
    "c": 0.1297,
    "h": 117.4
  },
  "luminance": 0.22467
}

Semantic roles & 50–950 ramp

primary
#7B8A1B
secondary
#5545BC
accent
#3EEA55
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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