#838E28#838E28

#838E28 is a mid, vivid yellow. Relative luminance 0.243; OKLCH L 61.8% C 0.124 H 115.5°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#838E28
RGBrgb(131, 142, 40)
HSLhsl(66, 56%, 36%)
HSVhsv(66, 72%, 56%)
CMYKcmyk(7.7%, 0%, 71.8%, 44.3%)
CIE-LABlab(56.41, -17.64, 50.12)
CIE-LCHlch(56.41, 53.14, 109.39°)
OKLaboklab(61.82% -0.0532 0.1118)
OKLCHoklch(61.82% 0.124 115.5)
XYZxyz(19.4166, 24.3248, 5.6794)
Luminance0.2432 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#838E28 #33288E
analogous
#8E6628 #838E28 #508E28
triadic
#838E28 #28838E #8E2883
tetradic
#838E28 #288E66 #33288E #8E2850
square
#838E28 #288E66 #33288E #8E2850
split-complementary
#838E28 #28508E #66288E
monochromatic
#2B2F0D #575E1B #838E28 #AFBE35 #C5D25F

Accessibility & contrast

On white

3.58
#838E28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#838E28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #838E28
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##838E28#FFFFFF#000000##000000
##838E281.003.585.865.86
#FFFFFF3.581.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#988717
Deuteranopia (green-blind)
#978830
Tritanopia (blue-blind)
#8C867A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #838e28;
/* rgb */ color: rgb(131, 142, 40);
/* oklch */ color: oklch(61.8% 0.124 115.5);
Tailwind
colors: {
  custom: {
    50: '#aaaf69',
    500: '#838e28',
    950: '#000000',
  },
}
SCSS
$custom: #838e28;
$custom-light: #aaaf69;
$custom-dark: #000000;
JSON
{
  "hex": "#838e28",
  "rgb": {
    "r": 131,
    "g": 142,
    "b": 40
  },
  "hsl": {
    "h": 66.471,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.61818,
    "c": 0.1238,
    "h": 115.5
  },
  "luminance": 0.24324
}

Semantic roles & 50–950 ramp

primary
#838E28
secondary
#655BB7
accent
#48DF59
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101007
muted
#7F7F7A

Preview Lab

Preview with #838E28

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

Preview Lab → · Contrast checker → · Palette generator →

#838E28 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva