#7B8A23#7B8A23

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

Color values

HEX#7B8A23
RGBrgb(123, 138, 35)
HSLhsl(69, 60%, 34%)
HSVhsv(69, 75%, 54%)
CMYKcmyk(10.9%, 0%, 74.6%, 45.9%)
CIE-LABlab(54.56, -19.38, 50.00)
CIE-LCHlch(54.56, 53.62, 111.18°)
OKLaboklab(60.17% -0.058 0.1109)
OKLCHoklch(60.17% 0.125 117.6)
XYZxyz(17.5606, 22.5094, 5.0094)
Luminance0.2251 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8A23 #32238A
analogous
#8A6623 #7B8A23 #488A23
triadic
#7B8A23 #237B8A #8A237B
tetradic
#7B8A23 #238A66 #32238A #8A2348
square
#7B8A23 #238A66 #32238A #8A2348
split-complementary
#7B8A23 #23488A #66238A
monochromatic
#24280A #4F5917 #7B8A23 #A7BB2F #C1D454

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B8A23#FFFFFF#000000##000000
##7B8A231.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)
#94820F
Deuteranopia (green-blind)
#92832C
Tritanopia (blue-blind)
#838276
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #7b8a23;
/* rgb */ color: rgb(123, 138, 35);
/* oklch */ color: oklch(60.2% 0.125 117.6);
Tailwind
colors: {
  custom: {
    50: '#a4ac66',
    500: '#7b8a23',
    950: '#000000',
  },
}
SCSS
$custom: #7b8a23;
$custom-light: #a4ac66;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8a23",
  "rgb": {
    "r": 123,
    "g": 138,
    "b": 35
  },
  "hsl": {
    "h": 68.738,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.60167,
    "c": 0.12516,
    "h": 117.6
  },
  "luminance": 0.22509
}

Semantic roles & 50–950 ramp

primary
#7B8A23
secondary
#6051B7
accent
#45E35C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8A23

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

Preview Lab → · Contrast checker → · Palette generator →

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