#AFA933#AFA933

#AFA933 is a light, vivid yellow. Relative luminance 0.377; OKLCH L 71.9% C 0.135 H 106.4°. Best body text is #000000 at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#AFA933
RGBrgb(175, 169, 51)
HSLhsl(57, 55%, 44%)
HSVhsv(57, 71%, 69%)
CMYKcmyk(0%, 3.4%, 70.9%, 31.4%)
CIE-LABlab(67.82, -11.78, 58.36)
CIE-LCHlch(67.82, 59.54, 101.41°)
OKLaboklab(71.86% -0.0383 0.1297)
OKLCHoklch(71.86% 0.135 106.4)
XYZxyz(32.4660, 37.7301, 8.7038)
Luminance0.3773 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA933 #3339AF
analogous
#AF6B33 #AFA933 #77AF33
triadic
#AFA933 #33AFA9 #A933AF
tetradic
#AFA933 #33AF6B #3339AF #AF3377
square
#AFA933 #33AF6B #3339AF #AF3377
split-complementary
#AFA933 #3377AF #6B33AF
monochromatic
#504D17 #807B25 #AFA933 #CDC752 #DBD682

Accessibility & contrast

On white

2.46
#AFA933 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.55
#AFA933 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA933
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA933#FFFFFF#000000##000000
##AFA9331.002.468.558.55
#FFFFFF2.461.0021.0021.00
#0000008.5521.001.001.00
##0000008.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A320
Deuteranopia (green-blind)
#BAA73B
Tritanopia (blue-blind)
#BC9E92
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #afa933;
/* rgb */ color: rgb(175, 169, 51);
/* oklch */ color: oklch(71.9% 0.135 106.4);
Tailwind
colors: {
  custom: {
    50: '#cac272',
    500: '#afa933',
    950: '#000000',
  },
}
SCSS
$custom: #afa933;
$custom-light: #cac272;
$custom-dark: #000000;
JSON
{
  "hex": "#afa933",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 51
  },
  "hsl": {
    "h": 57.097,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.71855,
    "c": 0.13521,
    "h": 106.4
  },
  "luminance": 0.37729
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA933

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

Preview Lab → · Contrast checker → · Palette generator →

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