#7B8A1C#7B8A1C

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

Color values

HEX#7B8A1C
RGBrgb(123, 138, 28)
HSLhsl(68, 66%, 33%)
HSVhsv(68, 80%, 54%)
CMYKcmyk(10.9%, 0%, 79.7%, 45.9%)
CIE-LABlab(54.52, -19.72, 52.36)
CIE-LCHlch(54.52, 55.95, 110.63°)
OKLaboklab(60.12% -0.0596 0.1146)
OKLCHoklch(60.12% 0.129 117.5)
XYZxyz(17.4669, 22.4720, 4.5158)
Luminance0.2247 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8A1C #2B1C8A
analogous
#8A621C #7B8A1C #448A1C
triadic
#7B8A1C #1C7B8A #8A1C7B
tetradic
#7B8A1C #1C8A62 #2B1C8A #8A1C44
square
#7B8A1C #1C8A62 #2B1C8A #8A1C44
split-complementary
#7B8A1C #1C448A #621C8A
monochromatic
#202407 #4E5712 #7B8A1C #A8BD26 #C6DA47

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B8A1C#FFFFFF#000000##000000
##7B8A1C1.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: #7b8a1c;
/* rgb */ color: rgb(123, 138, 28);
/* oklch */ color: oklch(60.1% 0.129 117.5);
Tailwind
colors: {
  custom: {
    50: '#a4ac63',
    500: '#7b8a1c',
    950: '#000000',
  },
}
SCSS
$custom: #7b8a1c;
$custom-light: #a4ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8a1c",
  "rgb": {
    "r": 123,
    "g": 138,
    "b": 28
  },
  "hsl": {
    "h": 68.182,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.60123,
    "c": 0.12918,
    "h": 117.5
  },
  "luminance": 0.22472
}

Semantic roles & 50–950 ramp

primary
#7B8A1C
secondary
#5646BB
accent
#3FE956
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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