#7B8E18#7B8E18

#7B8E18 is a mid, vivid yellow. Relative luminance 0.236; OKLCH L 61.1% C 0.136 H 119.1°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#7B8E18
RGBrgb(123, 142, 24)
HSLhsl(70, 71%, 33%)
HSVhsv(70, 83%, 56%)
CMYKcmyk(13.4%, 0%, 83.1%, 44.3%)
CIE-LABlab(55.71, -21.92, 54.61)
CIE-LCHlch(55.71, 58.85, 111.87°)
OKLaboklab(61.07% -0.0659 0.1187)
OKLCHoklch(61.07% 0.136 119.1)
XYZxyz(18.0067, 23.6230, 4.4751)
Luminance0.2362 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8E18 #2B188E
analogous
#8E6618 #7B8E18 #408E18
triadic
#7B8E18 #187B8E #8E187B
tetradic
#7B8E18 #188E66 #2B188E #8E1840
square
#7B8E18 #188E66 #2B188E #8E1840
split-complementary
#7B8E18 #18408E #66188E
monochromatic
#202506 #4E5A0F #7B8E18 #A8C221 #C6DF41

Accessibility & contrast

On white

3.67
#7B8E18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#7B8E18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8E18
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8E18#FFFFFF#000000##000000
##7B8E181.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#988500
Deuteranopia (green-blind)
#968625
Tritanopia (blue-blind)
#838679
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #7b8e18;
/* rgb */ color: rgb(123, 142, 24);
/* oklch */ color: oklch(61.1% 0.136 119.1);
Tailwind
colors: {
  custom: {
    50: '#a5af62',
    500: '#7b8e18',
    950: '#000000',
  },
}
SCSS
$custom: #7b8e18;
$custom-light: #a5af62;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8e18",
  "rgb": {
    "r": 123,
    "g": 142,
    "b": 24
  },
  "hsl": {
    "h": 69.661,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.61071,
    "c": 0.13579,
    "h": 119.1
  },
  "luminance": 0.23623
}

Semantic roles & 50–950 ramp

primary
#7B8E18
secondary
#5642C0
accent
#3AEE57
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #7B8E18

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

Preview Lab → · Contrast checker → · Palette generator →

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