#AF9826#AF9826

#AF9826 is a light, vivid yellow. Relative luminance 0.317; OKLCH L 68.1% C 0.129 H 97.1°. Best body text is #000000 at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#AF9826
RGBrgb(175, 152, 38)
HSLhsl(50, 64%, 42%)
HSVhsv(50, 78%, 69%)
CMYKcmyk(0%, 13.1%, 78.3%, 31.4%)
CIE-LABlab(63.10, -3.36, 58.57)
CIE-LCHlch(63.10, 58.67, 93.28°)
OKLaboklab(68.08% -0.0158 0.1276)
OKLCHoklch(68.08% 0.129 97.1)
XYZxyz(29.2588, 31.7119, 6.4132)
Luminance0.3171 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9826 #263DAF
analogous
#AF5426 #AF9826 #82AF26
triadic
#AF9826 #26AF98 #9826AF
tetradic
#AF9826 #26AF54 #263DAF #AF2682
square
#AF9826 #26AF54 #263DAF #AF2682
split-complementary
#AF9826 #2682AF #5426AF
monochromatic
#4A4110 #7D6C1B #AF9826 #D5BB3D #E0CD70

Accessibility & contrast

On white

2.86
#AF9826 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.34
#AF9826 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9826
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9826#FFFFFF#000000##000000
##AF98261.002.867.347.34
#FFFFFF2.861.0021.0021.00
#0000007.3421.001.001.00
##0000007.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#A8940C
Deuteranopia (green-blind)
#AE9C2E
Tritanopia (blue-blind)
#BD8C82
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #af9826;
/* rgb */ color: rgb(175, 152, 38);
/* oklch */ color: oklch(68.1% 0.129 97.1);
Tailwind
colors: {
  custom: {
    50: '#cbb56a',
    500: '#af9826',
    950: '#000000',
  },
}
SCSS
$custom: #af9826;
$custom-light: #cbb56a;
$custom-dark: #000000;
JSON
{
  "hex": "#af9826",
  "rgb": {
    "r": 175,
    "g": 152,
    "b": 38
  },
  "hsl": {
    "h": 49.927,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.68083,
    "c": 0.1286,
    "h": 97.1
  },
  "luminance": 0.3171
}

Semantic roles & 50–950 ramp

primary
#AF9826
secondary
#6A7AC7
accent
#5CE740
background
#FDFBF6
surface
#FAF6EC
border
#D3D0C7
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9826

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

Preview Lab → · Contrast checker → · Palette generator →

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