#AFA833#AFA833

#AFA833 is a light, vivid yellow. Relative luminance 0.374; OKLCH L 71.6% C 0.134 H 105.9°. Best body text is #000000 at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#AFA833
RGBrgb(175, 168, 51)
HSLhsl(57, 55%, 44%)
HSVhsv(57, 71%, 69%)
CMYKcmyk(0%, 4%, 70.9%, 31.4%)
CIE-LABlab(67.55, -11.26, 58.09)
CIE-LCHlch(67.55, 59.18, 100.97°)
OKLaboklab(71.64% -0.0368 0.1291)
OKLCHoklch(71.64% 0.134 105.9)
XYZxyz(32.2806, 37.3594, 8.6420)
Luminance0.3736 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA833 #333AAF
analogous
#AF6A33 #AFA833 #78AF33
triadic
#AFA833 #33AFA8 #A833AF
tetradic
#AFA833 #33AF6A #333AAF #AF3378
square
#AFA833 #33AF6A #333AAF #AF3378
split-complementary
#AFA833 #3378AF #6A33AF
monochromatic
#504D17 #807B25 #AFA833 #CDC652 #DBD682

Accessibility & contrast

On white

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

On black

8.47
#AFA833 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA833
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA833#FFFFFF#000000##000000
##AFA8331.002.488.478.47
#FFFFFF2.481.0021.0021.00
#0000008.4721.001.001.00
##0000008.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A220
Deuteranopia (green-blind)
#B9A73B
Tritanopia (blue-blind)
#BC9D91
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa833;
/* rgb */ color: rgb(175, 168, 51);
/* oklch */ color: oklch(71.6% 0.134 105.9);
Tailwind
colors: {
  custom: {
    50: '#cac172',
    500: '#afa833',
    950: '#000000',
  },
}
SCSS
$custom: #afa833;
$custom-light: #cac172;
$custom-dark: #000000;
JSON
{
  "hex": "#afa833",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 51
  },
  "hsl": {
    "h": 56.613,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.71636,
    "c": 0.13425,
    "h": 105.9
  },
  "luminance": 0.37358
}

Semantic roles & 50–950 ramp

primary
#AFA833
secondary
#7A7EC4
accent
#52DE4A
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA833

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

Preview Lab → · Contrast checker → · Palette generator →

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