#798328#798328

#798328 is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.4% C 0.114 H 115.4°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#798328
RGBrgb(121, 131, 40)
HSLhsl(67, 53%, 34%)
HSVhsv(67, 69%, 51%)
CMYKcmyk(7.6%, 0%, 69.5%, 48.6%)
CIE-LABlab(52.34, -16.31, 45.78)
CIE-LCHlch(52.34, 48.60, 109.61°)
OKLaboklab(58.36% -0.0489 0.1029)
OKLCHoklch(58.36% 0.114 115.4)
XYZxyz(16.3849, 20.4510, 5.0914)
Luminance0.2045 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798328 #322883
analogous
#835F28 #798328 #4B8328
triadic
#798328 #287983 #832879
tetradic
#798328 #28835F #322883 #83284B
square
#798328 #28835F #322883 #83284B
split-complementary
#798328 #284B83 #5F2883
monochromatic
#22250B #4E541A #798328 #A4B236 #C0CC59

Accessibility & contrast

On white

4.13
#798328 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#798328 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798328
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798328#FFFFFF#000000##000000
##7983281.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C1B
Deuteranopia (green-blind)
#8C7E2F
Tritanopia (blue-blind)
#817B71
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #798328;
/* rgb */ color: rgb(121, 131, 40);
/* oklch */ color: oklch(58.4% 0.114 115.4);
Tailwind
colors: {
  custom: {
    50: '#a2a668',
    500: '#798328',
    950: '#000000',
  },
}
SCSS
$custom: #798328;
$custom-light: #a2a668;
$custom-dark: #000000;
JSON
{
  "hex": "#798328",
  "rgb": {
    "r": 121,
    "g": 131,
    "b": 40
  },
  "hsl": {
    "h": 66.593,
    "s": 53.216,
    "l": 33.529
  },
  "oklch": {
    "l": 0.58356,
    "c": 0.11396,
    "h": 115.4
  },
  "luminance": 0.20451
}

Semantic roles & 50–950 ramp

primary
#798328
secondary
#5F55B1
accent
#4BDD5B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798328

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

Preview Lab → · Contrast checker → · Palette generator →

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