#7B8A1E#7B8A1E

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

Color values

HEX#7B8A1E
RGBrgb(123, 138, 30)
HSLhsl(68, 64%, 33%)
HSVhsv(68, 78%, 54%)
CMYKcmyk(10.9%, 0%, 78.3%, 45.9%)
CIE-LABlab(54.53, -19.63, 51.72)
CIE-LCHlch(54.53, 55.32, 110.78°)
OKLaboklab(60.14% -0.0592 0.1136)
OKLCHoklch(60.14% 0.128 117.5)
XYZxyz(17.4916, 22.4818, 4.6460)
Luminance0.2248 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8A1E #2D1E8A
analogous
#8A631E #7B8A1E #458A1E
triadic
#7B8A1E #1E7B8A #8A1E7B
tetradic
#7B8A1E #1E8A63 #2D1E8A #8A1E45
square
#7B8A1E #1E8A63 #2D1E8A #8A1E45
split-complementary
#7B8A1E #1E458A #631E8A
monochromatic
#212508 #4E5813 #7B8A1E #A8BC29 #C4D84B

Accessibility & contrast

On white

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

On black

5.50
#7B8A1E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8A1E
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8A1E#FFFFFF#000000##000000
##7B8A1E1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b8a1e;
/* rgb */ color: rgb(123, 138, 30);
/* oklch */ color: oklch(60.1% 0.128 117.5);
Tailwind
colors: {
  custom: {
    50: '#a4ac63',
    500: '#7b8a1e',
    950: '#000000',
  },
}
SCSS
$custom: #7b8a1e;
$custom-light: #a4ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8a1e",
  "rgb": {
    "r": 123,
    "g": 138,
    "b": 30
  },
  "hsl": {
    "h": 68.333,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.60135,
    "c": 0.12811,
    "h": 117.5
  },
  "luminance": 0.22482
}

Semantic roles & 50–950 ramp

primary
#7B8A1E
secondary
#594ABA
accent
#41E758
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8A1E

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

Preview Lab → · Contrast checker → · Palette generator →

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