#7B8A26#7B8A26

#7B8A26 is a mid, vivid yellow. Relative luminance 0.225; OKLCH L 60.2% C 0.123 H 117.7°. Best body text is #000000 at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#7B8A26
RGBrgb(123, 138, 38)
HSLhsl(69, 57%, 35%)
HSVhsv(69, 72%, 54%)
CMYKcmyk(10.9%, 0%, 72.5%, 45.9%)
CIE-LABlab(54.58, -19.21, 48.88)
CIE-LCHlch(54.58, 52.52, 111.45°)
OKLaboklab(60.19% -0.0573 0.1091)
OKLCHoklch(60.19% 0.123 117.7)
XYZxyz(17.6071, 22.5280, 5.2541)
Luminance0.2253 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8A26 #35268A
analogous
#8A6726 #7B8A26 #498A26
triadic
#7B8A26 #267B8A #8A267B
tetradic
#7B8A26 #268A67 #35268A #8A2649
square
#7B8A26 #268A67 #35268A #8A2649
split-complementary
#7B8A26 #26498A #67268A
monochromatic
#252A0C #505A19 #7B8A26 #A6BA33 #BFD159

Accessibility & contrast

On white

3.81
#7B8A26 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#7B8A26 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8A26
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8A26#FFFFFF#000000##000000
##7B8A261.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#938215
Deuteranopia (green-blind)
#92832E
Tritanopia (blue-blind)
#838276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7b8a26;
/* rgb */ color: rgb(123, 138, 38);
/* oklch */ color: oklch(60.2% 0.123 117.7);
Tailwind
colors: {
  custom: {
    50: '#a4ac67',
    500: '#7b8a26',
    950: '#000000',
  },
}
SCSS
$custom: #7b8a26;
$custom-light: #a4ac67;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8a26",
  "rgb": {
    "r": 123,
    "g": 138,
    "b": 38
  },
  "hsl": {
    "h": 69,
    "s": 56.818,
    "l": 34.51
  },
  "oklch": {
    "l": 0.60189,
    "c": 0.1232,
    "h": 117.7
  },
  "luminance": 0.22528
}

Semantic roles & 50–950 ramp

primary
#7B8A26
secondary
#6456B6
accent
#48E05F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8A26

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

Preview Lab → · Contrast checker → · Palette generator →

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