#AFA733#AFA733

#AFA733 is a light, vivid yellow. Relative luminance 0.370; OKLCH L 71.4% C 0.133 H 105.4°. Best body text is #000000 at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#AFA733
RGBrgb(175, 167, 51)
HSLhsl(56, 55%, 44%)
HSVhsv(56, 71%, 69%)
CMYKcmyk(0%, 4.6%, 70.9%, 31.4%)
CIE-LABlab(67.27, -10.74, 57.82)
CIE-LCHlch(67.27, 58.81, 100.52°)
OKLaboklab(71.42% -0.0353 0.1285)
OKLCHoklch(71.42% 0.133 105.4)
XYZxyz(32.0967, 36.9916, 8.5807)
Luminance0.3699 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA733 #333BAF
analogous
#AF6933 #AFA733 #79AF33
triadic
#AFA733 #33AFA7 #A733AF
tetradic
#AFA733 #33AF69 #333BAF #AF3379
square
#AFA733 #33AF69 #333BAF #AF3379
split-complementary
#AFA733 #3379AF #6933AF
monochromatic
#504D17 #807A25 #AFA733 #CDC552 #DBD582

Accessibility & contrast

On white

2.50
#AFA733 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.40
#AFA733 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA733
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA733#FFFFFF#000000##000000
##AFA7331.002.508.408.40
#FFFFFF2.501.0021.0021.00
#0000008.4021.001.001.00
##0000008.4021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa733;
/* rgb */ color: rgb(175, 167, 51);
/* oklch */ color: oklch(71.4% 0.133 105.4);
Tailwind
colors: {
  custom: {
    50: '#cac072',
    500: '#afa733',
    950: '#000000',
  },
}
SCSS
$custom: #afa733;
$custom-light: #cac072;
$custom-dark: #000000;
JSON
{
  "hex": "#afa733",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 51
  },
  "hsl": {
    "h": 56.129,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.71417,
    "c": 0.13331,
    "h": 105.4
  },
  "luminance": 0.3699
}

Semantic roles & 50–950 ramp

primary
#AFA733
secondary
#7A7FC4
accent
#53DE4A
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B

Preview Lab

Preview with #AFA733

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

Preview Lab → · Contrast checker → · Palette generator →

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