#AFB934#AFB934

#AFB934 is a light, vivid yellow. Relative luminance 0.441; OKLCH L 75.4% C 0.151 H 113.8°. Best body text is #000000 at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#AFB934
RGBrgb(175, 185, 52)
HSLhsl(65, 56%, 46%)
HSVhsv(65, 72%, 73%)
CMYKcmyk(5.4%, 0%, 71.9%, 27.5%)
CIE-LABlab(72.27, -19.89, 62.33)
CIE-LCHlch(72.27, 65.43, 107.69°)
OKLaboklab(75.41% -0.0608 0.1382)
OKLCHoklch(75.41% 0.151 113.8)
XYZxyz(35.6490, 44.0605, 9.8748)
Luminance0.4406 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB934 #3E34B9
analogous
#B98134 #AFB934 #6DB934
triadic
#AFB934 #34AFB9 #B934AF
tetradic
#AFB934 #34B981 #3E34B9 #B9346D
square
#AFB934 #34B981 #3E34B9 #B9346D
split-complementary
#AFB934 #346DB9 #8134B9
monochromatic
#555919 #828927 #AFB934 #C8D15A #D8DE89

Accessibility & contrast

On white

2.14
#AFB934 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.81
#AFB934 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB934
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB934#FFFFFF#000000##000000
##AFB9341.002.149.819.81
#FFFFFF2.141.0021.0021.00
#0000009.8121.001.001.00
##0000009.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B01B
Deuteranopia (green-blind)
#C6B23F
Tritanopia (blue-blind)
#BBAE9F
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #afb934;
/* rgb */ color: rgb(175, 185, 52);
/* oklch */ color: oklch(75.4% 0.151 113.8);
Tailwind
colors: {
  custom: {
    50: '#cacd75',
    500: '#afb934',
    950: '#000000',
  },
}
SCSS
$custom: #afb934;
$custom-light: #cacd75;
$custom-dark: #000000;
JSON
{
  "hex": "#afb934",
  "rgb": {
    "r": 175,
    "g": 185,
    "b": 52
  },
  "hsl": {
    "h": 64.511,
    "s": 56.118,
    "l": 46.471
  },
  "oklch": {
    "l": 0.75412,
    "c": 0.15103,
    "h": 113.8
  },
  "luminance": 0.4406
}

Semantic roles & 50–950 ramp

primary
#AFB934
secondary
#8681C8
accent
#48DF54
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141309
muted
#82827B

Preview Lab

Preview with #AFB934

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

Preview Lab → · Contrast checker → · Palette generator →

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