#798A23#798A23

#798A23 is a mid, vivid yellow. Relative luminance 0.224; OKLCH L 60.0% C 0.126 H 118.6°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#798A23
RGBrgb(121, 138, 35)
HSLhsl(70, 60%, 34%)
HSVhsv(70, 75%, 54%)
CMYKcmyk(12.3%, 0%, 74.6%, 45.9%)
CIE-LABlab(54.41, -20.26, 49.80)
CIE-LCHlch(54.41, 53.76, 112.14°)
OKLaboklab(60.01% -0.0603 0.1105)
OKLCHoklch(60.01% 0.126 118.6)
XYZxyz(17.2774, 22.3634, 4.9962)
Luminance0.2236 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798A23 #34238A
analogous
#8A6823 #798A23 #468A23
triadic
#798A23 #23798A #8A2379
tetradic
#798A23 #238A68 #34238A #8A2346
square
#798A23 #238A68 #34238A #8A2346
split-complementary
#798A23 #23468A #68238A
monochromatic
#23280A #4E5917 #798A23 #A4BB2F #BED454

Accessibility & contrast

On white

3.84
#798A23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#798A23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798A23
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798A23#FFFFFF#000000##000000
##798A231.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#93820F
Deuteranopia (green-blind)
#91832C
Tritanopia (blue-blind)
#808276
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #798a23;
/* rgb */ color: rgb(121, 138, 35);
/* oklch */ color: oklch(60.0% 0.126 118.6);
Tailwind
colors: {
  custom: {
    50: '#a3ac66',
    500: '#798a23',
    950: '#000000',
  },
}
SCSS
$custom: #798a23;
$custom-light: #a3ac66;
$custom-dark: #000000;
JSON
{
  "hex": "#798a23",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 35
  },
  "hsl": {
    "h": 69.903,
    "s": 59.538,
    "l": 33.922
  },
  "oklch": {
    "l": 0.60006,
    "c": 0.12593,
    "h": 118.6
  },
  "luminance": 0.22363
}

Semantic roles & 50–950 ramp

primary
#798A23
secondary
#6251B7
accent
#45E35F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798A23

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

Preview Lab → · Contrast checker → · Palette generator →

#798A23 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva