#AFB645#AFB645

#AFB645 is a light, vivid yellow. Relative luminance 0.430; OKLCH L 74.9% C 0.136 H 112.6°. Best body text is #000000 at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#AFB645
RGBrgb(175, 182, 69)
HSLhsl(64, 45%, 49%)
HSVhsv(64, 62%, 71%)
CMYKcmyk(3.8%, 0%, 62.1%, 28.6%)
CIE-LABlab(71.56, -17.37, 54.91)
CIE-LCHlch(71.56, 57.59, 107.56°)
OKLaboklab(74.88% -0.0521 0.1253)
OKLCHoklch(74.88% 0.136 112.6)
XYZxyz(35.4823, 43.0003, 12.0598)
Luminance0.4300 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFB645 #4C45B6
analogous
#B68545 #AFB645 #77B645
triadic
#AFB645 #45AFB6 #B645AF
tetradic
#AFB645 #45B685 #4C45B6 #B64577
square
#AFB645 #45B685 #4C45B6 #B64577
split-complementary
#AFB645 #4577B6 #8545B6
monochromatic
#5A5D23 #848A34 #AFB645 #C3C970 #D6D99C

Accessibility & contrast

On white

2.19
#AFB645 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.60
#AFB645 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFB645
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFB645#FFFFFF#000000##000000
##AFB6451.002.199.609.60
#FFFFFF2.191.0021.0021.00
#0000009.6021.001.001.00
##0000009.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C3AE37
Deuteranopia (green-blind)
#C3B14C
Tritanopia (blue-blind)
#BAAC9E
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afb645;
/* rgb */ color: rgb(175, 182, 69);
/* oklch */ color: oklch(74.9% 0.136 112.6);
Tailwind
colors: {
  custom: {
    50: '#cacb7e',
    500: '#afb645',
    950: '#000000',
  },
}
SCSS
$custom: #afb645;
$custom-light: #cacb7e;
$custom-dark: #000000;
JSON
{
  "hex": "#afb645",
  "rgb": {
    "r": 175,
    "g": 182,
    "b": 69
  },
  "hsl": {
    "h": 63.717,
    "s": 45.02,
    "l": 49.216
  },
  "oklch": {
    "l": 0.74879,
    "c": 0.13568,
    "h": 112.6
  },
  "luminance": 0.43
}

Semantic roles & 50–950 ramp

primary
#AFB645
secondary
#9491C6
accent
#53D55B
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C

Preview Lab

Preview with #AFB645

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

Preview Lab → · Contrast checker → · Palette generator →

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