#AFA826#AFA826

#AFA826 is a light, vivid yellow. Relative luminance 0.373; OKLCH L 71.6% C 0.142 H 106.2°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#AFA826
RGBrgb(175, 168, 38)
HSLhsl(57, 64%, 42%)
HSVhsv(57, 78%, 69%)
CMYKcmyk(0%, 4%, 78.3%, 31.4%)
CIE-LABlab(67.47, -11.84, 62.53)
CIE-LCHlch(67.47, 63.64, 100.72°)
OKLaboklab(71.55% -0.0396 0.1361)
OKLCHoklch(71.55% 0.142 106.2)
XYZxyz(32.0330, 37.2604, 7.3380)
Luminance0.3726 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA826 #262DAF
analogous
#AF6426 #AFA826 #72AF26
triadic
#AFA826 #26AFA8 #A826AF
tetradic
#AFA826 #26AF64 #262DAF #AF2672
square
#AFA826 #26AF64 #262DAF #AF2672
split-complementary
#AFA826 #2672AF #6426AF
monochromatic
#4A4710 #7D781B #AFA826 #D5CD3D #E0DA70

Accessibility & contrast

On white

2.48
#AFA826 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#AFA826 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA826
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA826#FFFFFF#000000##000000
##AFA8261.002.488.458.45
#FFFFFF2.481.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A200
Deuteranopia (green-blind)
#BAA731
Tritanopia (blue-blind)
#BC9C90
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa826;
/* rgb */ color: rgb(175, 168, 38);
/* oklch */ color: oklch(71.6% 0.142 106.2);
Tailwind
colors: {
  custom: {
    50: '#cbc16c',
    500: '#afa826',
    950: '#000000',
  },
}
SCSS
$custom: #afa826;
$custom-light: #cbc16c;
$custom-dark: #000000;
JSON
{
  "hex": "#afa826",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 38
  },
  "hsl": {
    "h": 56.934,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.71553,
    "c": 0.14176,
    "h": 106.2
  },
  "luminance": 0.37259
}

Semantic roles & 50–950 ramp

primary
#AFA826
secondary
#6A6FC7
accent
#49E740
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#141207
muted
#82817A

Preview Lab

Preview with #AFA826

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

Preview Lab → · Contrast checker → · Palette generator →

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