#798423#798423

#798423 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 58.6% C 0.119 H 115.8°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#798423
RGBrgb(121, 132, 35)
HSLhsl(67, 58%, 33%)
HSVhsv(67, 73%, 52%)
CMYKcmyk(8.3%, 0%, 73.5%, 48.2%)
CIE-LABlab(52.61, -17.14, 48.05)
CIE-LCHlch(52.61, 51.01, 109.63°)
OKLaboklab(58.56% -0.0517 0.1068)
OKLCHoklch(58.56% 0.119 115.8)
XYZxyz(16.4402, 20.6891, 4.7171)
Luminance0.2069 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798423 #2E2384
analogous
#845E23 #798423 #488423
triadic
#798423 #237984 #842379
tetradic
#798423 #23845E #2E2384 #842348
square
#798423 #23845E #2E2384 #842348
split-complementary
#798423 #234884 #5E2384
monochromatic
#202309 #4D5416 #798423 #A5B430 #C2D151

Accessibility & contrast

On white

4.09
#798423 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#798423 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798423
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798423#FFFFFF#000000##000000
##7984231.004.095.145.14
#FFFFFF4.091.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D12
Deuteranopia (green-blind)
#8D7E2B
Tritanopia (blue-blind)
#817C71
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #798423;
/* rgb */ color: rgb(121, 132, 35);
/* oklch */ color: oklch(58.6% 0.119 115.8);
Tailwind
colors: {
  custom: {
    50: '#a3a765',
    500: '#798423',
    950: '#000000',
  },
}
SCSS
$custom: #798423;
$custom-light: #a3a765;
$custom-dark: #000000;
JSON
{
  "hex": "#798423",
  "rgb": {
    "r": 121,
    "g": 132,
    "b": 35
  },
  "hsl": {
    "h": 66.804,
    "s": 58.084,
    "l": 32.745
  },
  "oklch": {
    "l": 0.58557,
    "c": 0.11869,
    "h": 115.8
  },
  "luminance": 0.20689
}

Semantic roles & 50–950 ramp

primary
#798423
secondary
#5A4EB4
accent
#46E158
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798423

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

Preview Lab → · Contrast checker → · Palette generator →

#798423 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva