#7B8D15#7B8D15

#7B8D15 is a mid, vivid yellow. Relative luminance 0.233; OKLCH L 60.8% C 0.136 H 118.6°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#7B8D15
RGBrgb(123, 141, 21)
HSLhsl(69, 74%, 32%)
HSVhsv(69, 85%, 55%)
CMYKcmyk(12.8%, 0%, 85.1%, 44.7%)
CIE-LABlab(55.40, -21.52, 55.14)
CIE-LCHlch(55.40, 59.19, 111.32°)
OKLaboklab(60.82% -0.065 0.1193)
OKLCHoklch(60.82% 0.136 118.6)
XYZxyz(17.8290, 23.3150, 4.2703)
Luminance0.2331 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8D15 #27158D
analogous
#8D6315 #7B8D15 #3F8D15
triadic
#7B8D15 #157B8D #8D157B
tetradic
#7B8D15 #158D63 #27158D #8D153F
square
#7B8D15 #158D63 #27158D #8D153F
split-complementary
#7B8D15 #153F8D #63158D
monochromatic
#1E2205 #4D580D #7B8D15 #A9C21D #C9E23B

Accessibility & contrast

On white

3.71
#7B8D15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#7B8D15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8D15
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8D15#FFFFFF#000000##000000
##7B8D151.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#958522
Tritanopia (blue-blind)
#838578
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7b8d15;
/* rgb */ color: rgb(123, 141, 21);
/* oklch */ color: oklch(60.8% 0.136 118.6);
Tailwind
colors: {
  custom: {
    50: '#a5ae60',
    500: '#7b8d15',
    950: '#000000',
  },
}
SCSS
$custom: #7b8d15;
$custom-light: #a5ae60;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8d15",
  "rgb": {
    "r": 123,
    "g": 141,
    "b": 21
  },
  "hsl": {
    "h": 69,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.60815,
    "c": 0.1359,
    "h": 118.6
  },
  "luminance": 0.23315
}

Semantic roles & 50–950 ramp

primary
#7B8D15
secondary
#513DC1
accent
#37F153
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #7B8D15

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

Preview Lab → · Contrast checker → · Palette generator →

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