#7B8618#7B8618

#7B8618 is a mid, vivid yellow. Relative luminance 0.213; OKLCH L 59.1% C 0.127 H 115.6°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#7B8618
RGBrgb(123, 134, 24)
HSLhsl(66, 70%, 31%)
HSVhsv(66, 82%, 53%)
CMYKcmyk(8.2%, 0%, 82.1%, 47.5%)
CIE-LABlab(53.31, -17.80, 52.50)
CIE-LCHlch(53.31, 55.43, 108.73°)
OKLaboklab(59.14% -0.0546 0.1142)
OKLCHoklch(59.14% 0.127 115.6)
XYZxyz(16.8588, 21.3274, 4.0925)
Luminance0.2133 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B8618 #231886
analogous
#865A18 #7B8618 #448618
triadic
#7B8618 #187B86 #86187B
tetradic
#7B8618 #18865A #231886 #861844
square
#7B8618 #18865A #231886 #861844
split-complementary
#7B8618 #184486 #5A1886
monochromatic
#1C1E05 #4B520F #7B8618 #ABBA21 #CCDC3C

Accessibility & contrast

On white

3.99
#7B8618 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#7B8618 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B8618
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B8618#FFFFFF#000000##000000
##7B86181.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#8F8023
Tritanopia (blue-blind)
#837E72
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #7b8618;
/* rgb */ color: rgb(123, 134, 24);
/* oklch */ color: oklch(59.1% 0.127 115.6);
Tailwind
colors: {
  custom: {
    50: '#a5a960',
    500: '#7b8618',
    950: '#000000',
  },
}
SCSS
$custom: #7b8618;
$custom-light: #a5a960;
$custom-dark: #000000;
JSON
{
  "hex": "#7b8618",
  "rgb": {
    "r": 123,
    "g": 134,
    "b": 24
  },
  "hsl": {
    "h": 66,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.59138,
    "c": 0.12657,
    "h": 115.6
  },
  "luminance": 0.21327
}

Semantic roles & 50–950 ramp

primary
#7B8618
secondary
#4C40BA
accent
#3BEC4D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #7B8618

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

Preview Lab → · Contrast checker → · Palette generator →

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